API Documentation
List of Endpoints
GET Top Post
=>
[method:
GET
]
=>
/top-posts
GET Search or Filter for Comments
=>
This endpoint uses req.query, filter using id, postId, body, name, or email
[method:
GET
] =>
/filtered-comments?postId=1
/filtered-comments?id=1
/filtered-comments?name=lorem
/filtered-comments?email=Nikita
/filtered-comments?body=ipsum
GET All Comments
=>
[method:
GET
]
=>
/comments
GET All Posts
=>
[method:
GET
]
=>
/posts
GET Post with Specific ID
=>
where :id type is int
[method:
GET
] =>
/posts/:id
Source Code