API Documentation - casey-cochran/Intermediate-group-proj GitHub Wiki

API Routes

Shakas (likes)

  • A logged in user can shaka/unshaka a hobbyPost with visible confirmation without the page refreshing.

    • POST /api/hobbyPosts/:id/shakas
    • DELETE /api/hobbyPosts/:id/shakas

Comments

  • A logged in user can comment or delete their comment with visible confirmation without the page refreshing.

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

Followers

  • A logged in user can follow or unfollow the hobbyist with visible confirmation without the page refreshing.

    • POST /api/:followedId/followers
    • DELETE /api/:followedId/followers