Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 346 Bytes

File metadata and controls

33 lines (24 loc) · 346 Bytes

New Post

URL : /api/posts

Method : POST

Auth required : YES

Payload

{
  "text": string,
  "author": user_id
}

Success Response

Code : 200 OK

Content schema

{
  "id": number,
  "created_at": Date,
  "updated_at": Date,
  "like": number,
  "modified": boolean,
  "text": string
}