Skip to content

API Documentation

Carson McLean edited this page Nov 4, 2016 · 28 revisions

Pagination and Size For Posts & Comments

(Not yet implemented)
For posts and comments in the GET URL one can also provide page and size.
If a page is provided, it returns the results for that page, if no page is provided it returns page 0.
If a size is provided, it returns pages in this size up to the maximum set on the server. If no size is provided it returns the default page size.

Examples:

  • GET http://service.ca/author/posts?page=4&size=50
  • GET http://service.ca/author/posts?page=4
  • GET http://service.ca/author/posts/de305d54-75b4-431b-adb2-eb6b9e546013/comments?page=4&size=50
  • GET http://service.ca/author/posts/de305d54-75b4-431b-adb2-eb6b9e546013/comments?page=4

Posts Related

Single Post Access: GET /posts/{post_id}
Public Posts Access: GET /posts/
Author Visible Posts Access: GET /author/posts/
Posts by Author Access: GET /author/{AUTHOR_ID}/posts/
Comments Access: GET /posts/{POST_ID}/comments

Author Related

Author's Profile Access: GET /author/{AUTHOR_ID}

Friend Related

Friends List Access: GET /friends/{authorid}
Check Friendship Access: GET /friends/{authorid1}/{authorid2}
Check List Friendship Access: POST /friends/{authorid}
Friend Request Access: POST /friendrequest

Clone this wiki locally