Create comment - leerbedrijflisa/breakpoint-api GitHub Wiki

POST /comments/

Request

Data fields

Field Description Required DataType
userName Name of the user that is assigned to the comment. Required String
comment The text in a comment. Required String

Example

Content-Type: application/json

{
  "userName" : "User",
  "comment": "Plain text"
}

Response

Data fields

Field Description DataType
id A unique identifier for a particular comment. Guid
created The date and time (in UTC) the comment was submitted. DateTime

Example

HTTP/1.1 201 Created
Content-Type: application/json

{
  "id": "0e646069-80ef-4514-a89a-9f9c5350defc",
  "userName": "User",
  "comment": "Plain text",
  "created": "2016-05-10T08:36:52.8698524Z",
  "status": "open",
  "statusChanged": ""
}