Compare commits
4 Commits
v3.0.1-alp
...
v3.0.2-alp
| Author | SHA1 | Date | |
|---|---|---|---|
| 8c2ed1ad8f | |||
| 0848fe3b27 | |||
| 8ac0215247 | |||
| 07f224ff18 |
@@ -11,11 +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"
|
||||||
"anyOf": [
|
|
||||||
{"type": "object"},
|
|
||||||
{"type": "array"}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"e": {
|
"e": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|||||||
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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -35,6 +35,20 @@
|
|||||||
"pattern": "^[a-zA-Z0-9]+$"
|
"pattern": "^[a-zA-Z0-9]+$"
|
||||||
},
|
},
|
||||||
"description": "List of TIPLOC Codes"
|
"description": "List of TIPLOC Codes"
|
||||||
|
},
|
||||||
|
"skip": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"skip": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Number of stops to skip"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["head", "tail"],
|
||||||
|
"description": "Position of stops to be skipped, either 'head' or 'tail'"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["code"],
|
"required": ["code"],
|
||||||
|
|||||||
Reference in New Issue
Block a user