Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. # Nimses API
  2. ### Headers to send:
  3. ```
  4. "content-Type": "application/json"
  5. ```
  6.  
  7. # Feed
  8. ## Get posts made by user
  9. * URL: `/api/feed/user`
  10. * METHOD: `GET`
  11. * PARAMS:
  12. ```
  13. id: User id
  14. cursor: Page number
  15. limit: Number of posts to get
  16. ```
  17.  
  18. ## Get information about a post
  19. * URL: `/api/feed/post`
  20. * METHOD: `GET`
  21. * PARAMS:
  22. ```
  23. id: Post id
  24. ```
  25.  
  26. ## Get post comments
  27. * URL: `/api/feed/comments`
  28. * METHOD: `GET`
  29. * PARAMS:
  30. ```
  31. postId: Post id
  32. cursor: Page number
  33. limit: Number of comments to get
  34. ```
  35.  
  36. ## Returns a list of users that nimed the post
  37. * URL: `/api/feed/nimed-by`
  38. * METHOD: `GET`
  39. * PARAMS:
  40. ```
  41. postId: Post id
  42. take: Number of users to get
  43. ```
  44.  
  45. ## Get post preview link
  46. * URL: `/api/feed/first-link-parse`
  47. * METHOD: `GET`
  48. * PARAMS:
  49. ```
  50. postId: Post id
  51. ```
  52.  
  53. # Profile
  54. ## Get user profile
  55. * URL: `/api/profile/:username`
  56. * METHOD: `GET`
  57.  
  58. ## Get user limits
  59. * URL: `/api/profile/limits`
  60. * METHOD: `GET`
  61. * PARAMS:
  62. ```
  63. id: User id
  64. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement