Compare commits
2 Commits
v3.0.2-alp
...
v3.0.3-alp
| Author | SHA1 | Date | |
|---|---|---|---|
| 645faf1003 | |||
| a2308198e9 |
@@ -11,7 +11,7 @@
|
|||||||
"description": "Unix timestamp showing when the data was generated, or the time the error was encountered"
|
"description": "Unix timestamp showing when the data was generated, or the time the error was encountered"
|
||||||
},
|
},
|
||||||
"d": {
|
"d": {
|
||||||
"description": "Payload data. Type depends on request endpoint"
|
"description": "Payload data. Type depends on request endpoint, typically an array of the response type"
|
||||||
},
|
},
|
||||||
"e": {
|
"e": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|||||||
19
schemas/api/stations/nearest-stations.json
Normal file
19
schemas/api/stations/nearest-stations.json
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"$id": "https://schema.owlboard.info/api/stations/nearestStations.schema.json",
|
||||||
|
"$schema": "https://json-schema.org/draft-07/schema#",
|
||||||
|
"title": "StationsNearestStations",
|
||||||
|
"description": "Nearest Stations API Resonse. Returned as an Array of the object. Response array will be sorted - nearest first",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"c": {
|
||||||
|
"type": "string",
|
||||||
|
"name": "CRS"
|
||||||
|
},
|
||||||
|
"n": {
|
||||||
|
"type": "string",
|
||||||
|
"name": "Station Name"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["c", "n"],
|
||||||
|
"additionalProperties": false
|
||||||
|
}
|
||||||
41
schemas/api/trains/TrainByHeadcode.json
Normal file
41
schemas/api/trains/TrainByHeadcode.json
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://json-schema.org/draft-07/schema#",
|
||||||
|
"title": "TrainByHeadcodeResponse",
|
||||||
|
"type": "object",
|
||||||
|
"required": ["r", "ot", "od", "dt", "o"],
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"r": {
|
||||||
|
"type": "string",
|
||||||
|
"name": "rid",
|
||||||
|
"description": "The RID of the service described"
|
||||||
|
},
|
||||||
|
"ot": {
|
||||||
|
"type": "string",
|
||||||
|
"name": "Origin TIPLOC",
|
||||||
|
"description": "The TIPLOC at which the service originates",
|
||||||
|
"minLength": 4,
|
||||||
|
"maxLength": 7
|
||||||
|
},
|
||||||
|
"od": {
|
||||||
|
"type": "string",
|
||||||
|
"name": "Origin Departure",
|
||||||
|
"format": "date-time",
|
||||||
|
"description": "The time that the service departs the originating location"
|
||||||
|
},
|
||||||
|
"dt": {
|
||||||
|
"type": "string",
|
||||||
|
"name": "Destination TIPLOC",
|
||||||
|
"description": "The TIPLOC at which the service terminates",
|
||||||
|
"minimum": 4,
|
||||||
|
"maximum": 7
|
||||||
|
},
|
||||||
|
"o": {
|
||||||
|
"type": "string",
|
||||||
|
"name": "Operator (TOC)",
|
||||||
|
"description": "The TOC operating the service",
|
||||||
|
"minLength": 2,
|
||||||
|
"maxLength": 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user