Skip to content

API Documentation

Tanner edited this page Feb 24, 2022 · 5 revisions

/users

Users can register and get authenticated. Users can update their information.

GET /api/users
POST /api/users
DELETE /api/user/:userId

/posts

Users can GET or see posts, create/edit posts, and delete posts

GET /api/posts
POST /api/posts
PUT /api/posts/:postId
DELETE /api/posts/:postId

/comments

Users can GET or see comments, create/edit comments, and delete comments

GET /api/comments
POST /api/comments
PUT /api/comments/:commentId
DELETE /api/comments/:commentId

/photos

GET /api/photos
GET /api/photos/:photoId
POST /api/photos/:photoId
DELETE /api/photos/:photoId

Likes

GET /api/likes/
POST /api/likes/:postId
DELETE /api/likes/:postId

/followers

GET /api/users/follow
POST /api/users/:userId/follower
DELETE /api/users/:userId/follow

Clone this wiki locally