-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.schema.json
57 lines (57 loc) · 2.25 KB
/
api.schema.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
{
"title": "Twitter API Schema",
"description": "The endpoints available in the Twitter API",
"type": "array",
"items": {
"type": "object",
"description": "An API call",
"properties": {
"path": {
"type": "string",
"description": "The URI of the API call"
},
"desc": {
"type": "string",
"description": "A description of the API call and its purpose, effects, related calls, etc."
},
"method": {
"type": "string",
"description": "HTTP method. Either GET or POST."
},
"params": {
"type": "array",
"description": "Parameters which can be passed to the API endpoint",
"items": {
"type": "object",
"description": "A single parameter which can be passed in a call to the API endpoint",
"properties": {
"name": {
"type": "string",
"description": "The name of the parameter"
},
"type": {
"type": "string",
"description": "The type (inferred) of the parameter"
},
"example": {
"type": "string",
"description": "An example of a value that can be passed for that parameter in a typical API call"
},
"desc": {
"type": "string",
"description": "A short description of the parameter and its effect on the result of the call."
},
"required": {
"type": "bool",
"description": "Whether the parameter is required or optional."
}
},
"required": ["name", "type", "desc", "required"]
},
"uniqueItems": true
}
},
"required": ["endpoint", "method"]
},
"uniqueItems": true
}