-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creates API endpoints for Events #29
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if you could test out the API endpoints for GET and whenever you finish the admin endpoints for those as well. If you need access to mongodb, lmk, but a good way of testing if your route is working could be to first POST and then use GET, that way you don't need to first put sample data.
@javalosr2004 Can I get access to mongodb? I finished the rest of the api calls so they just need to be tested in the morning. |
All API have now been tested on postman! |
The merge conflicts are just from me installing chakra to make the UI work in my branch, so you can just keep the main version as my changes to the json files have nothing to do with the issues this pr resolves. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks amazing, nice error checking and making sure that only properties that are available are used in the PATCH endpoint.
…endpoints feat: event endpoint
Developer: Jason Jelincic
Closes #14 and #15
Pull Request Summary
Creates all API endpoints for events (GET, POST, PATCH, DELETE)
Modifications
api/events :
Get request for all events
Post request to post a event
api/events/[eventId] :
Get request for a single event
Delete request to delete an event
Patch request to update an event
Testing Considerations
Need help gaining access to Atlas so I can do proper testing.
Pull Request Checklist
Screenshots/Screencast