Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 413 Bytes

example.silk.md

File metadata and controls

32 lines (23 loc) · 413 Bytes

Comments

POST /comments

Create a new comment.

  • Content-Type: "application/json"
  • Accept: "application/json"

Include the name and comment text in the body:

{
  "name": "Mat",
  "comment": "Writing tests is easy"
}

===

Example response

  • Status: 201
  • Content-Type: "application/json"
{
  "id": "123",
  "name": "Mat",
  "comment": "Writing tests is easy"
}