Skip to content

API Reference: Next-Gen Creative Blog Platform ​

Base URL: http://localhost:3001/api/v1 ​

MethodEndpointAuth RequiredPurposeStatus Codes
POST/auth/signupNoRegister new author account201, 400, 409
POST/auth/loginNoAuthenticate user & issue JWT200, 400, 401
GET/blogsNoFetch published blogs with pagination & tag filters200, 500
GET/blogs/:slugNoFetch complete blog details by slug200, 404
POST/blogsYes (Bearer)Create new blog draft / article201, 400, 401
PUT/blogs/:idYes (Author)Update authored article content200, 403, 404
DELETE/blogs/:idYes (Author)Delete article and cascade linked data200, 403, 404
POST/blogs/:id/likeYes (Bearer)Upvote / applaud article200, 401
POST/blogs/:id/commentYes (Bearer)Post comment to article201, 400, 401
GET/users/:idNoFetch public author profile and stories200, 404
GET/debug/healthNoHealth check and server status200