Route Ritage
Get Data From Route Ritage
Query Parameters
routeId string
routeName string
status array
Route Status (active, archive) (can be both) (optional)
Responses
- 200
- 400
- 401
Success
application/json
Schema
Example (from schema)
Example
Schema
message string required
data object[]
{
"message": "string",
"data": [
{
"ritageId": 0,
"ritageName": 0,
"departureRouteId": 0,
"departureRouteName": "string",
"returnRouteId": 0,
"returnRouteName": "string",
"status": "string",
"createdOn": "string"
}
]
}
{
"message": "Success",
"data": [
{
"ritageId": 1,
"ritageName": "Ritage 1",
"departureRouteId": 1,
"departureRouteName": "Route 1",
"returnRouteId": 2,
"returnRouteName": "Route 2",
"status": "Active"
},
{
"ritageId": 2,
"ritageName": "Ritage 2",
"departureRouteId": 1,
"departureRouteName": "Route 1",
"returnRouteId": null,
"returnRouteName": null,
"status": "Archive"
}
]
}
Bad Request
application/json
Schema
Example (from schema)
Expired Token
Bad Token
Schema
code string
message string
detail string
{
"code": "string",
"message": "string",
"detail": "string"
}
{
"code": "E-V1/1-03",
"message": "An error occurred while executing query",
"detail": "Context creation failed: jwt expired"
}
{
"code": "E-V1/1-03",
"message": "An error occurred while executing query",
"detail": "Context creation failed: jwt malformed"
}
Unauthorized Request
application/json
Schema
Example (from schema)
Example
Schema
code string
message string
{
"code": "string",
"message": "string"
}
{
"code": "E-G1/1-01",
"message": "Authentication token is required"
}
GET /route-ritage
Authorization
name: bearerAuthtype: httpscheme: bearerbearerFormat: JWT
Request
Request
curl / cURL
curl -L -X GET 'https://vsms-v2-public.mceasy.com/v1/route-ritage' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
python / requests
curl -L -X GET 'https://vsms-v2-public.mceasy.com/v1/route-ritage' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
go / native
curl -L -X GET 'https://vsms-v2-public.mceasy.com/v1/route-ritage' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
nodejs / axios
curl -L -X GET 'https://vsms-v2-public.mceasy.com/v1/route-ritage' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ruby / Net::HTTP
curl -L -X GET 'https://vsms-v2-public.mceasy.com/v1/route-ritage' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
csharp / RestSharp
curl -L -X GET 'https://vsms-v2-public.mceasy.com/v1/route-ritage' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
php / cURL
curl -L -X GET 'https://vsms-v2-public.mceasy.com/v1/route-ritage' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
java / OkHttp
curl -L -X GET 'https://vsms-v2-public.mceasy.com/v1/route-ritage' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
powershell / RestMethod
curl -L -X GET 'https://vsms-v2-public.mceasy.com/v1/route-ritage' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'