OpenAPI specification: http://localhost:3040/openapi.yaml
Comments
List comments
Return all comments. Filter to one post with postId.
GET
https://jsonplaceholder.typicode.com/commentsServers
https://jsonplaceholder.typicode.com
Live public API
Parameters
Query parameters
postIdqueryintegerOnly return comments on this post.
Responses
An array of comments.
RequestcURL
curl --request GET \ --url 'https://jsonplaceholder.typicode.com/comments?postId=1'
Response
Send a request to preview the response.
Was this page helpful?