Create DELETE request for events showing on Dashboard
Estimated time: 4 to 8 hours
Actual time: about 9 hours
Demo
DELETE Example (THIS DEMO ONLY WORKS ONCE!):
curl -v -H "Content-Type:application/json" -X DELETE https://utm0eolzl6.execute-api.us-west-2.amazonaws.com/v1/events/1
Deleting works and returns a status code 200 along with the deleted output for the user.
Question, what to return to the client upon success, maybe nothing in the body?
For failure there are three responses in the Swagger file I have failed to implement as of yet. These are 400 for an invalid id, 404 for an event not found, and 500 for db connection problems. My mapping from api gateway sends the 400 to the body of the response. I need to find out how to map only the error message to the body and 400 to the response headers.
See this wiki for info.
See this branch. The branch was reviewed by Alex and Zak, see PR for details.
Create DELETE request for events showing on Dashboard
Estimated time: 4 to 8 hours
Actual time: about 9 hours
Demo DELETE Example (THIS DEMO ONLY WORKS ONCE!):
curl -v -H "Content-Type:application/json" -X DELETE https://utm0eolzl6.execute-api.us-west-2.amazonaws.com/v1/events/1
Deleting works and returns a status code 200 along with the deleted output for the user.
Question, what to return to the client upon success, maybe nothing in the body?
For failure there are three responses in the Swagger file I have failed to implement as of yet. These are 400 for an invalid id, 404 for an event not found, and 500 for db connection problems. My mapping from api gateway sends the 400 to the body of the response. I need to find out how to map only the error message to the body and 400 to the response headers.
See this wiki for info. See this branch. The branch was reviewed by Alex and Zak, see PR for details.