-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.json
74 lines (74 loc) · 2.19 KB
/
config.json
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"acceptTypes": [
"application/json",
"text/plain"
],
"contentType": "application/json",
"contentTypes": [
"application/json",
"text/plain"
],
"endpoints": {
"locations_url": "/v1/locations",
"zones_url": "/v1/zones",
"statuses_url": "/v1/data",
"commands_url": "/v1/types",
"subscriptions_url": "/v1/subscriptions"
},
"methods": [
"POST",
"GET",
"PUT",
"PATCH",
"DELETE"
],
"successMessage": {
"200": {
"Description": "200 OK: Request successful"
},
"201": {
"Description": "200 Created: Resource Created"
},
"204": {
"Description": "204: Request successful, no content"
}
},
"errorMessages": {
"400b": {
"Error": "ParseError",
"Description": "400 Parse Error: Incoming JSON payload cannot be parsed"
},
"400p": {
"Error": "BadRequest",
"Description": "400 Bad Request: Error in URL parameters or payload"
},
"404": {
"Error": "NotFound",
"Description": "404 Not Found: Resource identified by the request is not found"
},
"405": {
"Error": "MethodNotAlowed",
"Description": "405 Method Not Allowed: Requested method not supported"
},
"406": {
"Error": "NotAcceptable",
"Description": "406 Not Acceptable: Accepted MIME types: application/json, text/plain"
},
"409": {
"Error": "TooManyResults",
"Description": "409 Too Many Results: Request may refer to several resources"
},
"413": {
"Error": "NoResourceAvailable",
"Description": "413 No Resource Available: Attemp to exceed spatial index limit results"
},
"415": {
"Error": "UnsupportedMediaType",
"Description": "415 Unsupported Media Type: Request media type not supported"
},
"501": {
"Error": "NotImplemented",
"Description": "501 Not Implemented: Request not supported"
}
}
}