-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathSearch.dtd
50 lines (50 loc) · 1.1 KB
/
Search.dtd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/Search.dtd",
"type": "object",
"title": "Search",
"properties": {
"api_key": {
"type": "string",
"title": "API Key",
"description": "api_key"
},
"device_id": {
"type": "string",
"title": "Device ID",
"description": "Device id"
},
"query": {
"type": "string",
"title": "Query",
"description": "Query"
},
"type": {
"type": "string",
"enum": [
"routes",
"addresses",
"notes",
"address_book"
],
"title": "Search Type",
"description": "Type of search: 'routes' - Search in routes index, 'addresses' - Search in routes_data index, 'notes' - Search in notes index, 'address_book' - Search in address book index"
},
"limit": {
"type": "integer",
"default": 10,
"title": "Limit",
"description": "Limit of displayed found items"
},
"offset": {
"type": "integer",
"default": 0,
"title": "Offset",
"description": "Offest of start item index searched for"
}
},
"required": [
"query",
"type"
]
}