Compare commits
3 Commits
v3.0.1-alp
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a2308198e9 | |||
| 8c2ed1ad8f | |||
| 0848fe3b27 |
31
schemas/api/location-filter.json
Normal file
31
schemas/api/location-filter.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"$id": "https://schema.owlboard.info/api/location-filter.schema.json",
|
||||
"$schema": "https://json-schema.org/draft-07/schema#",
|
||||
"title": "LocationFilterObject",
|
||||
"description": "Location filter API Response. Provides a location's data for filtering on the frontend",
|
||||
"type": "object",
|
||||
"required": ["n", "s"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"n": {
|
||||
"type": "string",
|
||||
"name": "Name",
|
||||
"description": "Name of the location"
|
||||
},
|
||||
"t": {
|
||||
"type": "string",
|
||||
"name": "TIPLOC",
|
||||
"description": "TIPLOC of the location"
|
||||
},
|
||||
"c": {
|
||||
"type": "string",
|
||||
"name": "CRS",
|
||||
"description": "CRS of the location"
|
||||
},
|
||||
"s": {
|
||||
"type": "string",
|
||||
"name": "searchString",
|
||||
"description": "Generated string for efficient filtering"
|
||||
}
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user