Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Events Controller + Router #8

Open
kevinschoonover opened this issue Sep 9, 2018 · 0 comments
Open

Events Controller + Router #8

kevinschoonover opened this issue Sep 9, 2018 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@kevinschoonover
Copy link
Contributor

kevinschoonover commented Sep 9, 2018

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.
@kevinschoonover kevinschoonover added the help wanted Extra attention is needed label Sep 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant