Skip to content

API Documentation

Ryan Satyabrata edited this page Nov 22, 2016 · 28 revisions

Node interconnection:

Adding a Node via admin panel, create user for that node object but you can leave the "approve" that user account to false, basic-auth still works with unapproved accounts. Deleting the node will delete the associated user too.
Node will also store a textual form of the id and password to connect and gain access to the foreign node.

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/api/author/posts?page=4&size=50
  • GET http://service.ca/api/author/posts?page=4
  • GET http://service.ca/api/author/posts/de305d54-75b4-431b-adb2-eb6b9e546013/comments?page=4&size=50
  • GET http://service.ca/api/author/posts/de305d54-75b4-431b-adb2-eb6b9e546013/comments?page=4

Posts Related

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

Author Related

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

Friend Related

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

Clone this wiki locally