Skip to content

Backend Routes

JamesKoenig edited this page Feb 10, 2021 · 7 revisions

Backend Routes

HTML

Verb URI Pattern Description
GET / static landing page

API Endpoints

Users

Verb URI Pattern Description
POST /api/users creates a new user
DELETE /api/users/:id deletes a user

posts

Verb URI Pattern Description
POST /api/posts uploads a post
PATCH /api/posts/:id updates a post
UPDATE (same as above) (same as above)
GET /api/posts/:id gets a specific post
DELETE /api/posts/:id deletes a specific post

likes

Verb URI Pattern Description
POST /api/posts/:id/like likes a post
DELETE /api/posts/:id/like unlikes a post

Bonus feature

reblogs

Verb URI Pattern Description
POST /api/posts/:id/reblog reblogs a post

Clone this wiki locally