Skip to content

comment

GET show

GET /comment/{id}

Params

NameLocationTypeRequiredDescription
idpathstringyesnone

Response Examples

200 Response

{
"author": "string",
"collectionId": "string",
"collectionName": "string",
"created": "2019-08-24T14:15:22Z",
"expand": {
"author": {
"avatar": "string",
"collectionId": "string",
"collectionName": "string",
"created": "string",
"email": "string",
"emailVisibility": true,
"id": "string",
"token": "string",
"updated": "string",
"username": "string",
"verified": true
}
},
"id": "string",
"rating": 0,
"text": "string",
"trail": "string",
"updated": "2019-08-24T14:15:22Z"
}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKOKInline
404Not FoundRecord Not FoundInline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» authorstringtruenonenone
» collectionIdstringtruenonenone
» collectionNamestringtruenonenone
» createdstring(date-time)truenonenone
» expandobjecttruenonenone
»» authorobjecttruenonenone
»»» avatarstringtruenonenone
»»» collectionIdstringtruenonenone
»»» collectionNamestringtruenonenone
»»» createdstringtruenonenone
»»» emailstringtruenonenone
»»» emailVisibilitybooleantruenonenone
»»» idstringtruenonenone
»»» tokenstringtruenonenone
»»» updatedstringtruenonenone
»»» usernamestringtruenonenone
»»» verifiedbooleantruenonenone
» idstringtruenonenone
» ratingintegertruenonenone
» textstringtruenonenone
» trailstringtruenonenone
» updatedstring(date-time)truenonenone

HTTP Status Code 404

NameTypeRequiredRestrictionsTitledescription
» urlstringtruenonenone
» statusintegertruenonenone
» responseobjecttruenonenone
»» codeintegertruenonenone
»» messagestringtruenonenone
»» dataobjecttruenonenone
» isAbortbooleantruenonenone
» originalErrorobjecttruenonenone
»» urlstringtruenonenone
»» statusintegertruenonenone
»» dataobjecttruenonenone
»»» codeintegertruenonenone
»»» messagestringtruenonenone
»»» dataobjecttruenonenone
» namestringtruenonenone

POST update

POST /comment/{id}

Body Parameters

{
"text": "string",
"trail": "string",
"author": "string"
}

Params

NameLocationTypeRequiredDescription
idpathstringyesnone
Content-Typeheaderstringyesnone
bodybodyobjectnonone
» textbodystringyesnone
» trailbodystringyesnone
» authorbodystringyesnone

Response Examples

200 Response

{
"author": "string",
"collectionId": "string",
"collectionName": "string",
"created": "2019-08-24T14:15:22Z",
"id": "string",
"rating": 0,
"text": "string",
"trail": "string",
"updated": "2019-08-24T14:15:22Z"
}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKOKInline
404Not FoundRecord Not FoundInline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» authorstringtruenonenone
» collectionIdstringtruenonenone
» collectionNamestringtruenonenone
» createdstring(date-time)truenonenone
» idstringtruenonenone
» ratingintegertruenonenone
» textstringtruenonenone
» trailstringtruenonenone
» updatedstring(date-time)truenonenone

HTTP Status Code 404

NameTypeRequiredRestrictionsTitledescription
» urlstringtruenonenone
» statusintegertruenonenone
» responseobjecttruenonenone
»» codeintegertruenonenone
»» messagestringtruenonenone
»» dataobjecttruenonenone
» isAbortbooleantruenonenone
» originalErrorobjecttruenonenone
»» urlstringtruenonenone
»» statusintegertruenonenone
»» dataobjecttruenonenone
»»» codeintegertruenonenone
»»» messagestringtruenonenone
»»» dataobjecttruenonenone
» namestringtruenonenone

DELETE delete

DELETE /comment/{id}

Params

NameLocationTypeRequiredDescription
idpathstringyesnone

Response Examples

200 Response

{
"acknowledged": true
}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKOKInline
404Not FoundRecord Not FoundInline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» acknowledgedbooleantruenonenone

HTTP Status Code 404

NameTypeRequiredRestrictionsTitledescription
» urlstringtruenonenone
» statusintegertruenonenone
» responseobjecttruenonenone
»» codeintegertruenonenone
»» messagestringtruenonenone
»» dataobjecttruenonenone
» isAbortbooleantruenonenone
» originalErrorobjecttruenonenone
»» urlstringtruenonenone
»» statusintegertruenonenone
»» dataobjecttruenonenone
»»» codeintegertruenonenone
»»» messagestringtruenonenone
»»» dataobjecttruenonenone
» namestringtruenonenone

GET list

GET /comment

Response Examples

200 Response

[
{
"author": "string",
"collectionId": "string",
"collectionName": "string",
"created": "string",
"expand": {
"author": {
"avatar": "string",
"collectionId": "string",
"collectionName": "string",
"created": "string",
"email": "string",
"emailVisibility": true,
"id": "string",
"token": "string",
"updated": "string",
"username": "string",
"verified": true
}
},
"id": "string",
"rating": 0,
"text": "string",
"trail": "string",
"updated": "string"
}
]

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKOKInline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» authorstringtruenonenone
» collectionIdstringtruenonenone
» collectionNamestringtruenonenone
» createdstringtruenonenone
» expandobjecttruenonenone
»» authorobjecttruenonenone
»»» avatarstringtruenonenone
»»» collectionIdstringtruenonenone
»»» collectionNamestringtruenonenone
»»» createdstringfalsenonenone
»»» emailstringfalsenonenone
»»» emailVisibilitybooleanfalsenonenone
»»» idstringtruenonenone
»»» tokenstringfalsenonenone
»»» updatedstringfalsenonenone
»»» usernamestringtruenonenone
»»» verifiedbooleanfalsenonenone
» idstringtruenonenone
» ratingintegertruenonenone
» textstringtruenonenone
» trailstringtruenonenone
» updatedstringtruenonenone

PUT create

PUT /comment

Body Parameters

{
"author": "string",
"text": "string",
"trail": "string"
}

Params

NameLocationTypeRequiredDescription
bodybodyobjectnonone
» authorbodystringyesnone
» textbodystringyesnone
» trailbodystringyesnone

Response Examples

200 Response

{
"author": "string",
"collectionId": "string",
"collectionName": "string",
"created": "2019-08-24T14:15:22Z",
"id": "string",
"rating": 0,
"text": "string",
"trail": "string",
"updated": "2019-08-24T14:15:22Z"
}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKOKInline
400Bad RequestBad RequestInline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» authorstringtruenonenone
» collectionIdstringtruenonenone
» collectionNamestringtruenonenone
» createdstring(date-time)truenonenone
» idstringtruenonenone
» ratingintegertruenonenone
» textstringtruenonenone
» trailstringtruenonenone
» updatedstring(date-time)truenonenone

HTTP Status Code 400

NameTypeRequiredRestrictionsTitledescription
» urlstringtruenonenone
» statusintegertruenonenone
» responseobjecttruenonenone
»» codeintegertruenonenone
»» messagestringtruenonenone
»» dataobjecttruenonenone
» isAbortbooleantruenonenone
» originalErrorobjecttruenonenone
»» urlstringtruenonenone
»» statusintegertruenonenone
»» dataobjecttruenonenone
»»» codeintegertruenonenone
»»» messagestringtruenonenone
»»» dataobjecttruenonenone
» namestringtruenonenone