Comments Fields
To fetch metadata of Comment object send a GET request to:
https://api.assembla.com/v1/meta/merge_request_version_comments.(json|xml)
example. request json with curl utility:
curl -H "authorization: bearer _token" https://api.assembla.com/v1/meta/merge_request_version_comments.json
example. request xml with curl utility:
curl -H "authorization: bearer _token" https://api.assembla.com/v1/meta/merge_request_version_comments.xml
table below is the list of fields contained in the response, this list will be properly formatted to json or xml as requested.
Fields
Param | Data type | Access | Description |
---|---|---|---|
content | string | read/write | Content of commit |
created_at | datetime | read | Date of comment creation |
id | integer | read | Comment identifier |
merge_request_id | integer | read | ID of the merge request on which comment was created |
space_id | string | read | ID of the space in which comment was created |
updated_at | datetime | read | Date of comment last update |
user_id | string | read | ID of the user that created the comment |
Validations
Field | Validator | Description |
---|---|---|
content | presence validator | Comment should have content. |
merge_request_id | presence validator | Field must be present. The field is set automatically on comment creation. |