-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspec.json
More file actions
155 lines (155 loc) · 4.34 KB
/
spec.json
File metadata and controls
155 lines (155 loc) · 4.34 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"openapi": "3.0.0",
"servers": [
{
"url": "https://polls.apiblueprint.org"
}
],
"info": {
"description": "Polls is a simple API allowing consumers to view polls and vote in them.",
"title": "clickup20",
"version": "1.0.0",
"x-logo": {
"url": "https://api.apis.guru/v2/cache/logo/https_clickup.com_favicons_apple-touch-icon.png"
},
"x-origin": [
{
"format": "swagger",
"url": "https://jsapi.apiary.io/apis/clickup20.source",
"version": "2.0"
}
],
"x-providerName": "clickup.com"
},
"tags": [],
"paths": {
"/questions": {
"get": {
"description": "",
"operationId": "List All Questions",
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"response": {
"value": [
{
"choices": [
{
"choice": "Swift",
"votes": 2048
},
{
"choice": "Python",
"votes": 1024
},
{
"choice": "Objective-C",
"votes": 512
},
{
"choice": "Ruby",
"votes": 256
}
],
"published_at": "2015-08-05T08:40:51.620Z",
"question": "Favourite programming language?"
}
]
}
}
}
},
"description": "OK",
"headers": {}
}
},
"summary": "List All Questions",
"tags": []
},
"post": {
"description": "You may create your own question using this action. It takes a JSON\nobject containing a question and a collection of answers in the\nform of choices.",
"operationId": "Create a New Question",
"requestBody": {
"content": {
"application/json": {
"schema": {
"example": {
"choices": [
"Swift",
"Python",
"Objective-C",
"Ruby"
],
"question": "Favourite programming language?"
},
"properties": {
"choices": {
"items": {
"type": "string"
},
"type": "array"
},
"question": {
"type": "string"
}
},
"type": "object"
}
}
}
},
"responses": {
"201": {
"content": {
"application/json": {
"examples": {
"response": {
"value": {
"choices": [
{
"choice": "Swift",
"votes": 0
},
{
"choice": "Python",
"votes": 0
},
{
"choice": "Objective-C",
"votes": 0
},
{
"choice": "Ruby",
"votes": 0
}
],
"published_at": "2015-08-05T08:40:51.620Z",
"question": "Favourite programming language?"
}
}
}
}
},
"description": "Created",
"headers": {
"Location": {
"schema": {
"type": "string"
}
}
}
}
},
"summary": "Create a New Question",
"tags": []
}
}
},
"components": {
"schemas": {
"Questions_Collection": {}
}
}
}