-
Notifications
You must be signed in to change notification settings - Fork 1
API Routes
Crystal Chavez edited this page Apr 28, 2022
·
4 revisions
Unregistered users can signup for account
POST /signup
Registered users can login
POST /login
Users can view profiles
GET /users/:userId
Users can create, read, edit and delete photos
Getting all photos
GET /photos
Create a photo
POST /photos
Get one photo
GET /photos/:photoId
Update specific photo
PUT /photos/:photoId
Delete specific photo
DELETE /photos/:photoId
Users can create, read, edit and delete albums
Getting all albums
GET /albums
Create an album
POST /albums
Get one album
GET /albums/:albumId
Update specific album
PUT /albums/:albumId
Delete specific album
DELETE /albums/:albumId
Users can create, read, and delete comments
Getting all comments
GET /photos/:photoId
Create a comment
POST /photos/:photoId
Delete specific comment
DELETE /comments/:commentId
Users can create, read, and delete tags
Getting all tags
GET /tags
Create a tag
POST /tags
Delete specific tag
DELETE /tags/:tagId