-
Notifications
You must be signed in to change notification settings - Fork 1
Mapping Comment endpoints
tudorgroza edited this page Feb 22, 2021
·
1 revision
- Endpoint:
POST /v1/projects/{projectId}/mappings/{mappingId}/comments
- Role required:
ADMIN
orCONTRIBUTOR
orCONSUMER
- Payload:
<STRING> body
(Mandatory) - Response (Comment):
201 | CREATED
{
"body": "STRING",
"created": {
"user": {
"name": "Test User 1",
"email": "[email protected]"
},
"timestamp": "2021-02-11T21:23:14.156+08:00"
}
}
OR
404 | NOT FOUND
- If
projectId
is inexistent or user doesn't have access to it
- Endpoint:
/v1/projects/{projectId}/mappings/{mappingId}/comments
- Response (List of Comment):
200 | OK
[{
"body": "STRING",
"created": {
"user": {
"name": "Test User 1",
"email": "[email protected]"
},
"timestamp": "2021-02-11T21:23:14.156+08:00"
}
},
...
]
OR
404 | NOT FOUND
- If
projectId
is inexistent or user doesn't have access to it