Path parameters

  • postId integer(int64) Required
application/json

Body Required

  • text string

    Minimum length is 1.

Responses

  • 200 */*

    OK

    Hide response attribute Show response attribute object
    • text string

      Minimum length is 1.

POST /posts/{postId}/comments
curl \
 --request POST 'http://localhost:8080/posts/{postId}/comments' \
 --header "Content-Type: application/json" \
 --data '{"text":"string"}'
Request examples
{
  "text": "string"
}
Response examples (200)
{
  "text": "string"
}