Skip to content

API Documentation

Tran Le edited this page Apr 25, 2021 · 6 revisions

API Routes

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.

Photos

  • A logged in user may add, edit, or delete a photo.
    • POST /api/photos
    • PUT /api/photos/:id
    • DELETE /api/photos/:id

Comments

  • A logged in user may add, edit, or delete a comment they made on a photo.
    • POST /api/comment/:photoId
    • PUT /api/comment/:photoId
    • DELETE /api/comment/:photoId

Albums

  • A logged in user may add, edit, or delete a photo album.
    • POST /api/albums
    • PUT /api/albums/:id
    • DELETE /api/albums/:id

Clone this wiki locally