Closed ap2322 closed 4 years ago
On the backend, have an endpoint post /api/v1/reports that creates a report in the database and responds with a 201 response.
post /api/v1/reports
Request body in json:
{ lat: , long: , category_name: , category_report: { <all field information from the category report> } }
Response:
{ "message": "success"} status: 201 Created
Questions: how to handle image upload on the backend?
On the backend, have an endpoint
post /api/v1/reports
that creates a report in the database and responds with a 201 response.Request body in json:
Response:
Questions: how to handle image upload on the backend?