Skip to content

Requests posts

Anton Churyn edited this page Jul 17, 2017 · 2 revisions

Posts

  1. Get top posts
url: `${baseUrl}/posts/top?limit=10&offset=${offset}`,
response: 
  {
    results: <Array>,
    offset: <String>
  }
  1. Get hot posts
url: `${baseUrl}/posts/hot?limit=10&offset=${offset}`,
response: 
  {
    results: <Array>,
    offset: <String>
  }
  1. Get new posts
url: `${baseUrl}/posts/new?limit=10&offset=${offset}`,
response: 
  {
    results: <Array>,
    offset: <String>
  }

4.Get new posts by category

url: `${baseUrl}/posts/${category}/new`,
response: 
  {
    results: <Array>,
    offset: <String>
  }

5.Get top posts by category

url: `${baseUrl}/posts/${category}/top`,
response: 
  {
    results: <Array>,
    offset: <String>
  }

6.Get hot posts by category

url: `${baseUrl}/posts/${category}/hot`,
response: 
  {
    results: <Array>,
    offset: <String>
  }

7.Get user posts

url: `${baseUrl}/user/${author}/posts`,
response: 
  {
    results: <Array>,
    offset: <String>
  }
  1. Get comment for post
url: `${baseUrl}/post/${author}/${url}/comments`,
response: 
  {
    results: <Array>
  }
Clone this wiki locally