API Documentation - masontaylor7/Large GitHub Wiki

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.

Comments

A logged in user may create/update/delete one of their own comments without causing a refresh/redirect.

  • POST /api/comments
  • PUT /api/comments/:id
  • DELETE /api/comments/:id

Likes

A logged in user can like or remove a like on a gamer-log or comment with visible confirmation without causing a refresh/redirect.

  • POST /api/posts/:id/likes
  • POST /api/comments/:id/likes
  • DELETE /api/posts/:id/likes
  • DELETE /api/comments/:id/likes