-
Notifications
You must be signed in to change notification settings - Fork 18
Requests posts
Anton Churyn edited this page Jul 17, 2017
·
2 revisions
- Get top posts
url: `${baseUrl}/posts/top?limit=10&offset=${offset}`,
response:
{
results: <Array>,
offset: <String>
}
- Get hot posts
url: `${baseUrl}/posts/hot?limit=10&offset=${offset}`,
response:
{
results: <Array>,
offset: <String>
}
- 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>
}
- Get comment for post
url: `${baseUrl}/post/${author}/${url}/comments`,
response:
{
results: <Array>
}
Steepshot Inc.