Skip to content

trail

POST file

POST /trail/{id}/file

Body Parameters

photos: string
gpx: string

Params

NameLocationTypeRequiredDescription
idpathstringyesnone
Content-Typeheaderstringyesnone
bodybodyobjectnonone
» photosbodystring(binary)nonone
» gpxbodystring(binary)nonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKSuccessInline

Responses Data Schema

GET show

GET /trail/{id}

Params

NameLocationTypeRequiredDescription
idpathstringyesnone

Response Examples

200 Response

{
"author": "string",
"category": "string",
"collectionId": "string",
"collectionName": "string",
"created": "2019-08-24T14:15:22Z",
"date": "2019-08-24",
"description": "string",
"difficulty": "easy",
"distance": 0,
"duration": 0,
"elevation_gain": 0,
"gpx": "string",
"id": "string",
"lat": 0,
"location": "string",
"lon": 0,
"name": "string",
"photos": [
"string"
],
"public": true,
"summit_logs": [
"string"
],
"thumbnail": 0,
"updated": "2019-08-24T14:15:22Z",
"waypoints": [
"string"
]
}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKOKInline
404Not FoundRecord Not FoundInline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» authorstringtruenonenone
» categorystringtruenonenone
» collectionIdstringtruenonenone
» collectionNamestringtruenonenone
» createdstring(date-time)truenonenone
» datestring(date)truenonenone
» descriptionstringtruenonenone
» difficultystringtruenonenone
» distancenumbertruenonenone
» durationnumbertruenonenone
» elevation_gainnumbertruenonenone
» gpxstringtruenonenone
» idstringtruenonenone
» latnumbertruenonenone
» locationstringtruenonenone
» lonnumbertruenonenone
» namestringtruenonenone
» photos[string]truenonenone
» publicbooleantruenonenone
» summit_logs[string]truenonenone
» thumbnailintegertruenonenone
» updatedstring(date-time)truenonenone
» waypoints[string]truenonenone

Enum

NameValue
difficultyeasy
difficultymoderate
difficultyhard

HTTP Status Code 404

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

POST update

POST /trail/{id}

Body Parameters

{
"name": "string",
"category": "string",
"description": "string",
"difficulty": "easy",
"distance": 0,
"duration": 0,
"elevation_gain": 0,
"lat": 0,
"location": "string",
"lon": 0,
"public": true,
"thumbnail": 0
}

Params

NameLocationTypeRequiredDescription
idpathstringyesnone
Content-Typeheaderstringyesnone
bodybodyobjectnonone
» namebodystringyesnone
» categorybodystringnonone
» descriptionbodystringnonone
» difficultybodystringnonone
» distancebodynumbernonone
» durationbodynumbernonone
» elevation_gainbodynumbernonone
» latbodynumbernonone
» locationbodystringnonone
» lonbodynumbernonone
» publicbodybooleannonone
» thumbnailbodyintegernonone

Enum

NameValue
» difficultyeasy
» difficultymoderate
» difficultyhard

Response Examples

200 Response

{
"author": "string",
"category": "string",
"collectionId": "string",
"collectionName": "string",
"created": "2019-08-24T14:15:22Z",
"date": "2019-08-24",
"description": "string",
"difficulty": "easy",
"distance": 0,
"duration": 0,
"elevation_gain": 0,
"expand": {
"category": {
"collectionId": "string",
"collectionName": "string",
"created": "string",
"id": "string",
"img": "string",
"name": "string",
"updated": "string"
},
"waypoints": [
{
"author": "string",
"collectionId": "string",
"collectionName": "string",
"created": "string",
"description": "string",
"icon": "string",
"id": "string",
"lat": 0,
"lon": 0,
"name": "string",
"photos": [
"string"
],
"updated": "string"
}
]
},
"gpx": "string",
"id": "string",
"lat": 0,
"location": "string",
"lon": 0,
"name": "string",
"photos": [
"string"
],
"public": true,
"summit_logs": [
"string"
],
"thumbnail": 0,
"updated": "2019-08-24T14:15:22Z",
"waypoints": [
"string"
]
}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKOKInline
404Not FoundRecord Not FoundInline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» authorstringtruenonenone
» categorystringtruenonenone
» collectionIdstringtruenonenone
» collectionNamestringtruenonenone
» createdstring(date-time)truenonenone
» datestring(date)truenonenone
» descriptionstringtruenonenone
» difficultystringtruenonenone
» distancenumbertruenonenone
» durationnumbertruenonenone
» elevation_gainnumbertruenonenone
» expandobjecttruenonenone
»» categoryobjecttruenonenone
»»» collectionIdstringtruenonenone
»»» collectionNamestringtruenonenone
»»» createdstringtruenonenone
»»» idstringtruenonenone
»»» imgstringtruenonenone
»»» namestringtruenonenone
»»» updatedstringtruenonenone
»» waypoints[object]truenonenone
»»» authorstringtruenonenone
»»» collectionIdstringtruenonenone
»»» collectionNamestringtruenonenone
»»» createdstringtruenonenone
»»» descriptionstringtruenonenone
»»» iconstringtruenonenone
»»» idstringtruenonenone
»»» latnumbertruenonenone
»»» lonnumbertruenonenone
»»» namestringtruenonenone
»»» photos[string]truenonenone
»»» updatedstringtruenonenone
» gpxstringtruenonenone
» idstringtruenonenone
» latnumbertruenonenone
» locationstringtruenonenone
» lonnumbertruenonenone
» namestringtruenonenone
» photos[string]truenonenone
» publicbooleantruenonenone
» summit_logs[string]truenonenone
» thumbnailintegertruenonenone
» updatedstring(date-time)truenonenone
» waypoints[string]truenonenone

Enum

NameValue
difficultyeasy
difficultymoderate
difficultyhard

HTTP Status Code 404

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

DELETE delete

DELETE /trail/{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 /trail

Response Examples

200 Response

{
"page": 0,
"perPage": 0,
"totalItems": 0,
"totalPages": 0,
"items": [
{
"author": "string",
"category": "string",
"collectionId": "string",
"collectionName": "string",
"created": "string",
"description": "string",
"difficulty": "string",
"distance": 0,
"duration": 0,
"elevation_gain": 0,
"gpx": "string",
"id": "string",
"lat": 0,
"location": "string",
"lon": 0,
"name": "string",
"photos": [
"string"
],
"public": true,
"summit_logs": [
"string"
],
"thumbnail": 0,
"updated": "string",
"waypoints": [
"string"
]
}
]
}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKOKInline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» pageintegertruenonenone
» perPageintegertruenonenone
» totalItemsintegertruenonenone
» totalPagesintegertruenonenone
» items[object]truenonenone
»» authorstringtruenonenone
»» categorystringtruenonenone
»» collectionIdstringtruenonenone
»» collectionNamestringtruenonenone
»» createdstringtruenonenone
»» descriptionstringtruenonenone
»» difficultystringtruenonenone
»» distanceintegertruenonenone
»» durationintegertruenonenone
»» elevation_gainintegertruenonenone
»» gpxstringtruenonenone
»» idstringtruenonenone
»» latnumbertruenonenone
»» locationstringtruenonenone
»» lonnumbertruenonenone
»» namestringtruenonenone
»» photos[string]truenonenone
»» publicbooleantruenonenone
»» summit_logs[string]truenonenone
»» thumbnailintegertruenonenone
»» updatedstringtruenonenone
»» waypoints[string]truenonenone

PUT upload

PUT /trail/upload

Body Parameters

string

Params

NameLocationTypeRequiredDescription
Content-Typeheaderstringyesnone
bodybodystring(binary)nonone

Response Examples

200 Response

{
"author": "string",
"category": "string",
"collectionId": "string",
"collectionName": "string",
"created": "2019-08-24T14:15:22Z",
"date": "2019-08-24",
"description": "string",
"difficulty": "easy",
"distance": 0,
"duration": 0,
"elevation_gain": 0,
"gpx": "string",
"id": "string",
"lat": 0,
"location": "string",
"lon": 0,
"name": "string",
"photos": [
"string"
],
"public": true,
"summit_logs": [
"string"
],
"thumbnail": 0,
"updated": "2019-08-24T14:15:22Z",
"waypoints": [
"string"
]
}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKOKInline
400Bad RequestBad RequestInline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» authorstringtruenonenone
» categorystringtruenonenone
» collectionIdstringtruenonenone
» collectionNamestringtruenonenone
» createdstring(date-time)truenonenone
» datestring(date)truenonenone
» descriptionstringtruenonenone
» difficultystringtruenonenone
» distancenumbertruenonenone
» durationnumbertruenonenone
» elevation_gainnumbertruenonenone
» gpxstringtruenonenone
» idstringtruenonenone
» latnumbertruenonenone
» locationstringtruenonenone
» lonnumbertruenonenone
» namestringtruenonenone
» photos[string]truenonenone
» publicbooleantruenonenone
» summit_logs[string]truenonenone
» thumbnailintegertruenonenone
» updatedstring(date-time)truenonenone
» waypoints[string]truenonenone

Enum

NameValue
difficultyeasy
difficultymoderate
difficultyhard

HTTP Status Code 400

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