-
Notifications
You must be signed in to change notification settings - Fork 0
Post related endpoints
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
POST /api/v1/users/{userid}/posts
Returns:
- ID
GET /api/v1/posts/today
Returns:
GET /api/v1/posts/week
GET /api/v1/posts/month
GET /api/v1/posts/alltime
GET /api/v1/posts/{postid}
GET /api/v1/users/{userid}/posts
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
PUT /api/v1/users/{userid}/posts/{postid}/title
Expected parameters:
- Title
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
PUT /api/v1/users/{userid}/posts/{postid}/description
Expected parameters:
- Description
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
PUT /api/v1/users/{userid}/posts/{postid}/content
Expected parameters:
- Content
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
DELETE /api/v1/users/{userid}/posts/{postid}
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
POST /api/v1/users/{userid}/posts/{postid}/likes
Requires Authorization Bearer header with a valid JWT token corresponding to the userid.
DELETE /api/v1/users/{userid}/posts/{postid}/likes