Get all hazard comments
get
/connectedWorker/clientapi/v2/projects/{projectId}/hazards/{hazardId}/comments
This operation retrieves all comments for a specific hazard.
Request
Path Parameters
-
hazardId: integer(int64)
Hazard identifier
-
projectId: integer(int64)
Project identifier
Response
Supported Media Types
- application/json
200 Response
Hazard comments were successfully retrieved
Nested Schema : HazardComment
Type:
Show Source
object-
created(optional):
string(date-time)
Read Only:
trueTime when the comment was added, in ISO-8601 formatExample:2018-01-01T11:59:59 -
id(optional):
integer(int64)
Read Only:
trueThe unique id of the objectExample:53 -
links(optional):
array links
-
message:
string
Message of the comment, cannot be blankExample:
My comment for the hazard
Nested Schema : Link
Type:
Show Source
object-
href:
string
The target resource's URI
-
rel:
string
Relation type