Skip to content

Localserver API v1

Dmytro Polunin edited this page Jan 31, 2021 · 3 revisions

Schema

/api/v1/posts/:post_id

GET /api/v1/posts/:post_id

Get info about post with :post_id.

Response data: Post

Types

Post

  • title: string,
  • owner: string,
  • rating: number,
  • type: "text"|"post",
  • posted: datetime in UTC in the format dd/mm/yy hh:mm:ss,

Example:

{
  "username": "Andrey",
  "avatar": null,
  "karma": -10,
  "lang": "ru",
  "follows": 30,
  "followers": 3,
  "registration": "10/02/21"
}

Clone this wiki locally