-
Notifications
You must be signed in to change notification settings - Fork 0
API Documentation
vernfongchao edited this page Mar 3, 2022
·
2 revisions
This web app uses the following API routes to dynamically update the page to create a single-page-app-like feel for the user for specific features.
- GET "/"
- Get all the Image/post from our database from the table images
- POST "/"
- Post an Image/post into our database to the table images
- PUT "/:id"
- Update an Image/Post into our database to a record on the table images
- DELETE "/:id"
- Delete an image record off of our database from the table images
- GET "/"
- Get all the comments from our database from the table comments
- POST "/images/:image_id"
- Post a comment into our database to the table comments with the given image_id
- PUT "/:id"
- Updates a comment from our database to a record on the table comments
- DELETE "/:id"
- Delete a record off of our database from the table comments
- GET "/"
- Get all the likes from our database from the table likes
- POST "/images/:image_id"
- Post a like into our database to the table likes with the given image_id
- DELETE "/:id"
- Delete a record off of our database from the table likes
- GET "/"
- Get all the follows from our database from the table follows
- POST "/user/user_id"
- Post a follow into our database to the table follows with the given user_id
- DELETE "/:id"
- Delete a record off of our database from the table follows