Tweet-311-Denver / tweet_311_denver_service

Backend for Tweet311Denver Turing Project
MIT License
1 stars 0 forks source link

Form creates a report on the backend #8

Closed ap2322 closed 4 years ago

ap2322 commented 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.

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?