Create a new comment
Create a new comment.
- application/json
Request Body required
Comment body
- body string required
- sha256 string required
- username string
Responses
- 201
- 400
- 404
- 413
- 500
Created
- application/json
- Schema
- Example (from schema)
Schema
- body string
Body represents the content of the comment.
- id string
ID represents the activity identifier.
- sha256 string
SHA256 references the hash of the file where the comment has been made.
- timestamp integer
Timestamp when this activity happened.
- type string
Type represents the document type.
- username string
Username represents the author of the comment.
{
"body": "string",
"id": "string",
"sha256": "string",
"timestamp": 0,
"type": "string",
"username": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- details
- message string
- status integer
{
"details": {},
"message": "string",
"status": 0
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
- details
- message string
- status integer
{
"details": {},
"message": "string",
"status": 0
}
Request Entity Too Large
- application/json
- Schema
- Example (from schema)
Schema
- details
- message string
- status integer
{
"details": {},
"message": "string",
"status": 0
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
- details
- message string
- status integer
{
"details": {},
"message": "string",
"status": 0
}
Loading...