Skip to content

API Routes

Crystal Chavez edited this page Apr 28, 2022 · 4 revisions

Users

Unregistered users can signup for account

  • POST /signup

Registered users can login

  • POST /login

Users can view profiles

  • GET /users/:userId

Photos

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

Albums

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

Comments

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

Tags

Users can create, read, and delete tags

Getting all tags

  • GET /tags

Create a tag

  • POST /tags

Delete specific tag

  • DELETE /tags/:tagId
Clone this wiki locally