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
{{ message }}
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.
After Completion of #7, create the controller and routes for the Events model.
api/v1/events/
GET: Returns a list of all currently created events in their JSON representation from the database. If there are no events, return an empty list.
POST: Creates a new event with the fields specified in the request. If the creation fails due to a user error or server error, return a 4XX or 5XX response with an error message, respectively.
api/v1/events/<event-id>/
GET: Returns a single JSON of the event specified by the <event-id>. If the <event-id> does not exist in the database return 404.
PUT: Updates the given event with the fields provided.
PATCH: Updates the given event with the fields provided.
DELETE: Delete the event entry from the database.
The text was updated successfully, but these errors were encountered:
After Completion of #7, create the controller and routes for the
Events
model.api/v1/events/
api/v1/events/<event-id>/
<event-id>
. If the<event-id>
does not exist in the database return 404.The text was updated successfully, but these errors were encountered: