Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
83 lines (82 sloc) 2.79 KB
{
"title": "Routes Map REST Web Service Response Schema (Routes Map Resource)",
"type": "object",
"properties": {
"code": {
"type": "integer",
"minimum": 200,
"maximum": 200
},
"status": {
"enum": ["success"]
},
"data": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"routes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"required": ["name"]
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"required": ["name"]
},
"distance": {
"type": "number"
}
},
"required": ["name", "slug", "origin", "destination", "distance"]
},
"minItems": 0,
"uniqueItems": true
},
"links": {
"type": "array",
"items": {
"type": "object",
"properties": {
"rel": {
"type": "string"
},
"href": {
"type": "string"
}
},
"required": ["rel", "href"]
},
"minItems": 1,
"uniqueItems": true
}
},
"required": ["name", "slug", "routes", "links"]
}
},
"required": ["code", "status", "data"]
}