Welcome to Nodjs Blog API 8-)
GET: /api/users/
GET: /api/users/:userid
POST: /api/users/
This endpoint requires you to send a request with a token(named "authorization")
STRING: name (required)
STRING: email (required)
STRING: password (required)
STRING: gender
STRING: country
STRING: age
STRING: bio
ARRAY: stacks
PATCH: /api/users/me
This endpoint requires you to send a request with a token(named "authorization")
STRING: name
STRING: email
STRING: password
STRING: gender
STRING: country
STRING: age
STRING: bio
ARRAY: stacks
DELETE: /api/users/me
This endpoint requires you to send a request with a token(named "authorization")
GET: /api/posts/
GET: /api/posts/:userid
GET: /api/posts/search?s=keyword
POST: /api/posts/
This endpoint requires you to send a request with a token(named "authorization")
STRING: title (required)
STRING: content (required)
PATCH: /api/posts/:id
This endpoint requires you to send a request with a token(named "authorization")
STRING: title
STRING: content
DELETE: /api/posts/:id
This endpoint requires you to send a request with a token(named "authorization")
Comments API Endpoints
GET: /api/comments/:post_id
POST: /api/comments/:post_id This endpoint requires you to send a request with a token(named "authorization")
STRING: comment (required)
PATCH: /api/comments/:post_id/:comment_id
This endpoint requires you to send a request with a token(named "authorization")
STRING: comment (required)
DELETE: /api/comments/:post_id/:comment_id
This endpoint requires you to send a request with a token(named "authorization")