You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
View: report() view that validates the data and calls insert_or_update_error() and returns HTTP 200. error_from is defaulted to frontend for this view.
Create a serializer ErrorReportsSerializer that validates data in the report() view
Route the new API endpoint correctly
Acceptance Criteria
New API that captures and stores errors from frontend
API routed from core/api_urls.py to core/errorreports/api_urls.py to final core/errorreports/api.py:report()
Test case are written to ensure:
Errors are saved into ErrorReports when not in developer mode
Errors are not saved into ErrorReports when in developer mode
Overview
This issue creates an API endpoint
/api/errorreports/report
to capture and store reports from the frontendDescription and outcomes
/api/errorreports/report
POST
HTTP 200
report()
view that validates the data and callsinsert_or_update_error()
and returns HTTP 200.error_from
is defaulted tofrontend
for this view.ErrorReportsSerializer
that validates data in thereport()
viewAcceptance Criteria
core/api_urls.py
tocore/errorreports/api_urls.py
to final core/errorreports/api.py:report()ErrorReports
when not in developer modeErrorReports
when in developer modeAssumptions and Dependencies
NA
Scope
Out-of-Scope
Accessibility Requirements
NA
Resources
The text was updated successfully, but these errors were encountered: