apib2swagger 1.10.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/codeql-analysis.yml +71 -0
- package/.github/workflows/docker-publish.yml +70 -0
- package/.github/workflows/nodejs.yml +26 -0
- package/.travis.yml +2 -3
- package/Dockerfile +5 -0
- package/LICENSE +0 -0
- package/README.md +31 -10
- package/bin/apib2swagger.js +44 -18
- package/index.js +82 -366
- package/package.json +6 -4
- package/src/escape_json_pointer.js +0 -0
- package/src/mson_to_json_schema.js +13 -8
- package/src/parameters.js +111 -0
- package/src/requests.js +344 -0
- package/src/responses.js +181 -0
- package/src/util.js +127 -0
- package/test/input/Attributes.md +0 -0
- package/test/input/Issue-#15.md +0 -0
- package/test/input/Issue-#22.md +0 -0
- package/test/input/Issue-#23.md +0 -0
- package/test/input/Issue-#26.md +0 -0
- package/test/input/Issue-#29.md +0 -0
- package/test/input/Issue-#33.md +0 -0
- package/test/input/Issue-#35.md +0 -0
- package/test/input/Issue-#36.md +0 -0
- package/test/input/Issue-#38.md +0 -0
- package/test/input/Issue-#49.md +24 -0
- package/test/input/OpenAPI3_attributes.md +36 -0
- package/test/input/OpenAPI3_headers.md +74 -0
- package/test/input/OpenAPI3_includes.md +22 -0
- package/test/input/OpenAPI3_requests.md +162 -0
- package/test/input/OpenAPI3_responses.md +177 -0
- package/test/input/Schema.md +0 -0
- package/test/input/apiblueprint_uber.md +0 -0
- package/test/input/apiblueprint_valid_simple.md +0 -0
- package/test/input/includes/resource-request-body-2.json +3 -0
- package/test/input/includes/resource-request-body.json +3 -0
- package/test/input/includes/resource-request-schema.json +9 -0
- package/test/input/includes/resource-response-body-2.json +3 -0
- package/test/input/includes/resource-response-body.json +3 -0
- package/test/input/includes/resource-response-schema.json +9 -0
- package/test/input/schema_without_body.md +17 -0
- package/test/meta_schema.json +0 -0
- package/test/openAPI_30_schema.json +1662 -0
- package/test/output/01. Simplest API.json +1 -0
- package/test/output/01. Simplest API.ref.json +1 -0
- package/test/output/02. Resource and Actions.json +2 -0
- package/test/output/02. Resource and Actions.ref.json +2 -0
- package/test/output/03. Named Resource and Actions.json +2 -0
- package/test/output/03. Named Resource and Actions.ref.json +2 -0
- package/test/output/04. Grouping Resources.json +2 -0
- package/test/output/04. Grouping Resources.ref.json +2 -0
- package/test/output/05. Responses.json +2 -0
- package/test/output/05. Responses.ref.json +2 -0
- package/test/output/06. Requests.json +2 -0
- package/test/output/06. Requests.ref.json +2 -0
- package/test/output/07. Parameters.json +3 -0
- package/test/output/07. Parameters.ref.json +3 -0
- package/test/output/08. Attributes.json +1 -0
- package/test/output/08. Attributes.ref.json +1 -0
- package/test/output/09. Advanced Attributes.json +3 -0
- package/test/output/09. Advanced Attributes.ref.json +3 -0
- package/test/output/10. Data Structures.json +3 -0
- package/test/output/10. Data Structures.ref.json +3 -0
- package/test/output/11. Resource Model.json +2 -0
- package/test/output/11. Resource Model.ref.json +2 -0
- package/test/output/12. Advanced Action.json +3 -0
- package/test/output/12. Advanced Action.ref.json +3 -0
- package/test/output/13. Named Endpoints.json +2 -0
- package/test/output/13. Named Endpoints.ref.json +2 -0
- package/test/output/Attributes.json +1 -0
- package/test/output/Attributes.ref.json +1 -0
- package/test/output/Gist Fox API + Auth.json +12 -0
- package/test/output/Gist Fox API + Auth.ref.json +12 -0
- package/test/output/Issue-#15.json +3 -0
- package/test/output/Issue-#15.ref.json +3 -0
- package/test/output/Issue-#22.json +0 -0
- package/test/output/Issue-#22.ref.json +0 -0
- package/test/output/Issue-#23.json +1 -0
- package/test/output/Issue-#23.ref.json +1 -0
- package/test/output/Issue-#26.json +2 -0
- package/test/output/Issue-#26.ref.json +2 -0
- package/test/output/Issue-#29.json +2 -0
- package/test/output/Issue-#29.ref.json +2 -0
- package/test/output/Issue-#33.json +9 -8
- package/test/output/Issue-#33.ref.json +9 -8
- package/test/output/Issue-#35.json +0 -0
- package/test/output/Issue-#35.ref.json +0 -0
- package/test/output/Issue-#36.json +1 -0
- package/test/output/Issue-#36.ref.json +1 -0
- package/test/output/Issue-#38.bearer.json +53 -52
- package/test/output/Issue-#38.json +1 -0
- package/test/output/Issue-#38.ref.json +1 -0
- package/test/output/Issue-#49.json +141 -0
- package/test/output/Issue-#49.ref.json +126 -0
- package/test/output/OpenAPI3_attributes.json +199 -0
- package/test/output/OpenAPI3_attributes.ref.json +173 -0
- package/test/output/OpenAPI3_headers.json +169 -0
- package/test/output/OpenAPI3_headers.ref.json +169 -0
- package/test/output/OpenAPI3_includes.json +66 -0
- package/test/output/OpenAPI3_includes.ref.json +66 -0
- package/test/output/OpenAPI3_requests.json +326 -0
- package/test/output/OpenAPI3_requests.ref.json +321 -0
- package/test/output/OpenAPI3_responses.json +255 -0
- package/test/output/OpenAPI3_responses.ref.json +245 -0
- package/test/output/Schema.json +3 -0
- package/test/output/Schema.ref.json +3 -0
- package/test/output/apiblueprint_uber.json +5 -0
- package/test/output/apiblueprint_uber.ref.json +5 -0
- package/test/output/apiblueprint_valid_simple.json +12 -0
- package/test/output/apiblueprint_valid_simple.ref.json +12 -0
- package/test/output/schema_without_body.json +52 -0
- package/test/output/schema_without_body.ref.json +52 -0
- package/test/swagger_20_schema.json +0 -0
- package/test/test.js +31 -15
- package/test/util.test.js +151 -0
- package/.npmignore +0 -35
- package/package-lock.json +0 -2320
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"summary": "",
|
|
21
|
+
"operationId": "",
|
|
21
22
|
"description": "Here we define an action using the `GET` [HTTP request method](http://www.w3schools.com/tags/ref_httpmethods.asp) for our resource `/message`.\n\nAs with every good action it should return a [response](http://www.w3.org/TR/di-gloss/#def-http-response). A response always bears a status code. Code 200 is great as it means all is green. Responding with some data can be a great idea as well so let's add a plain text message to our response.",
|
|
22
23
|
"tags": [],
|
|
23
24
|
"parameters": [],
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
"summary": "",
|
|
38
|
+
"operationId": "",
|
|
37
39
|
"description": "OK, let's add another action. This time to put new data to our resource (essentially an update action). We will need to send something in a [request](http://www.w3.org/TR/di-gloss/#def-http-request) and then send a response back confirming the posting was a success (HTTP Status Code 204 ~ Resource updated successfully, no content is returned).",
|
|
38
40
|
"tags": [],
|
|
39
41
|
"parameters": []
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"summary": "",
|
|
21
|
+
"operationId": "",
|
|
21
22
|
"description": "Here we define an action using the `GET` [HTTP request method](http://www.w3schools.com/tags/ref_httpmethods.asp) for our resource `/message`.\n\nAs with every good action it should return a [response](http://www.w3.org/TR/di-gloss/#def-http-response). A response always bears a status code. Code 200 is great as it means all is green. Responding with some data can be a great idea as well so let's add a plain text message to our response.",
|
|
22
23
|
"tags": [],
|
|
23
24
|
"parameters": [],
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
"summary": "",
|
|
38
|
+
"operationId": "",
|
|
37
39
|
"description": "OK, let's add another action. This time to put new data to our resource (essentially an update action). We will need to send something in a [request](http://www.w3.org/TR/di-gloss/#def-http-request) and then send a response back confirming the posting was a success (HTTP Status Code 204 ~ Resource updated successfully, no content is returned).",
|
|
38
40
|
"tags": [],
|
|
39
41
|
"parameters": []
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"summary": "Retrieve a Message",
|
|
21
|
+
"operationId": "Retrieve a Message",
|
|
21
22
|
"description": "Now this is informative! No extra explanation needed here. This action clearly retrieves the message.",
|
|
22
23
|
"tags": [],
|
|
23
24
|
"parameters": [],
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
"summary": "Update a Message",
|
|
38
|
+
"operationId": "Update a Message",
|
|
37
39
|
"description": "`Update a message` - nice and simple naming is the best way to go.",
|
|
38
40
|
"tags": [],
|
|
39
41
|
"parameters": []
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"summary": "Retrieve a Message",
|
|
21
|
+
"operationId": "Retrieve a Message",
|
|
21
22
|
"description": "Now this is informative! No extra explanation needed here. This action clearly retrieves the message.",
|
|
22
23
|
"tags": [],
|
|
23
24
|
"parameters": [],
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
"summary": "Update a Message",
|
|
38
|
+
"operationId": "Update a Message",
|
|
37
39
|
"description": "`Update a message` - nice and simple naming is the best way to go.",
|
|
38
40
|
"tags": [],
|
|
39
41
|
"parameters": []
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"summary": "Retrieve a Message",
|
|
21
|
+
"operationId": "Retrieve a Message",
|
|
21
22
|
"description": "",
|
|
22
23
|
"tags": [
|
|
23
24
|
"Messages"
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
}
|
|
37
38
|
},
|
|
38
39
|
"summary": "Update a Message",
|
|
40
|
+
"operationId": "Update a Message",
|
|
39
41
|
"description": "",
|
|
40
42
|
"tags": [
|
|
41
43
|
"Messages"
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"summary": "Retrieve a Message",
|
|
21
|
+
"operationId": "Retrieve a Message",
|
|
21
22
|
"description": "",
|
|
22
23
|
"tags": [
|
|
23
24
|
"Messages"
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
}
|
|
37
38
|
},
|
|
38
39
|
"summary": "Update a Message",
|
|
40
|
+
"operationId": "Update a Message",
|
|
39
41
|
"description": "",
|
|
40
42
|
"tags": [
|
|
41
43
|
"Messages"
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"summary": "Retrieve a Message",
|
|
27
|
+
"operationId": "Retrieve a Message",
|
|
27
28
|
"description": "This action has **two** responses defined: One returing a plain text and the other a JSON representation of our resource. Both has the same HTTP status code. Also both responses bear additional information in the form of a custom HTTP header. Note that both responses have set the `Content-Type` HTTP header just by specifying `(text/plain)` or `(application/json)` in their respective signatures.",
|
|
28
29
|
"tags": [
|
|
29
30
|
"Messages"
|
|
@@ -42,6 +43,7 @@
|
|
|
42
43
|
}
|
|
43
44
|
},
|
|
44
45
|
"summary": "Update a Message",
|
|
46
|
+
"operationId": "Update a Message",
|
|
45
47
|
"description": "",
|
|
46
48
|
"tags": [
|
|
47
49
|
"Messages"
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"summary": "Retrieve a Message",
|
|
27
|
+
"operationId": "Retrieve a Message",
|
|
27
28
|
"description": "This action has **two** responses defined: One returing a plain text and the other a JSON representation of our resource. Both has the same HTTP status code. Also both responses bear additional information in the form of a custom HTTP header. Note that both responses have set the `Content-Type` HTTP header just by specifying `(text/plain)` or `(application/json)` in their respective signatures.",
|
|
28
29
|
"tags": [
|
|
29
30
|
"Messages"
|
|
@@ -42,6 +43,7 @@
|
|
|
42
43
|
}
|
|
43
44
|
},
|
|
44
45
|
"summary": "Update a Message",
|
|
46
|
+
"operationId": "Update a Message",
|
|
45
47
|
"description": "",
|
|
46
48
|
"tags": [
|
|
47
49
|
"Messages"
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"summary": "Retrieve a Message",
|
|
27
|
+
"operationId": "Retrieve a Message",
|
|
27
28
|
"description": "In API Blueprint requests can hold exactly the same kind of information and can be described by exactly the same structure as responses, only with different signature – using the `Request` keyword. The string that follows after the `Request` keyword is a request identifier. Again, using an explanatory and simple naming is the best way to go.",
|
|
28
29
|
"tags": [
|
|
29
30
|
"Messages"
|
|
@@ -51,6 +52,7 @@
|
|
|
51
52
|
}
|
|
52
53
|
},
|
|
53
54
|
"summary": "Update a Message",
|
|
55
|
+
"operationId": "Update a Message",
|
|
54
56
|
"description": "",
|
|
55
57
|
"tags": [
|
|
56
58
|
"Messages"
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"summary": "Retrieve a Message",
|
|
27
|
+
"operationId": "Retrieve a Message",
|
|
27
28
|
"description": "In API Blueprint requests can hold exactly the same kind of information and can be described by exactly the same structure as responses, only with different signature – using the `Request` keyword. The string that follows after the `Request` keyword is a request identifier. Again, using an explanatory and simple naming is the best way to go.",
|
|
28
29
|
"tags": [
|
|
29
30
|
"Messages"
|
|
@@ -51,6 +52,7 @@
|
|
|
51
52
|
}
|
|
52
53
|
},
|
|
53
54
|
"summary": "Update a Message",
|
|
55
|
+
"operationId": "Update a Message",
|
|
54
56
|
"description": "",
|
|
55
57
|
"tags": [
|
|
56
58
|
"Messages"
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"summary": "Retrieve a Message",
|
|
28
|
+
"operationId": "Retrieve a Message",
|
|
28
29
|
"description": "",
|
|
29
30
|
"tags": [
|
|
30
31
|
"Messages"
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
}
|
|
61
62
|
},
|
|
62
63
|
"summary": "Update a Message",
|
|
64
|
+
"operationId": "Update a Message",
|
|
63
65
|
"description": "",
|
|
64
66
|
"tags": [
|
|
65
67
|
"Messages"
|
|
@@ -116,6 +118,7 @@
|
|
|
116
118
|
}
|
|
117
119
|
},
|
|
118
120
|
"summary": "Retrieve all Messages",
|
|
121
|
+
"operationId": "Retrieve all Messages",
|
|
119
122
|
"description": "",
|
|
120
123
|
"tags": [
|
|
121
124
|
"Messages"
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"summary": "Retrieve a Message",
|
|
28
|
+
"operationId": "Retrieve a Message",
|
|
28
29
|
"description": "",
|
|
29
30
|
"tags": [
|
|
30
31
|
"Messages"
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
}
|
|
61
62
|
},
|
|
62
63
|
"summary": "Update a Message",
|
|
64
|
+
"operationId": "Update a Message",
|
|
63
65
|
"description": "",
|
|
64
66
|
"tags": [
|
|
65
67
|
"Messages"
|
|
@@ -116,6 +118,7 @@
|
|
|
116
118
|
}
|
|
117
119
|
},
|
|
118
120
|
"summary": "Retrieve all Messages",
|
|
121
|
+
"operationId": "Retrieve all Messages",
|
|
119
122
|
"description": "",
|
|
120
123
|
"tags": [
|
|
121
124
|
"Messages"
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"summary": "Retrieve a Coupon",
|
|
46
|
+
"operationId": "Retrieve a Coupon",
|
|
46
47
|
"description": "Retrieves the coupon with the given ID.",
|
|
47
48
|
"tags": [
|
|
48
49
|
"Coupons"
|
|
@@ -84,6 +85,7 @@
|
|
|
84
85
|
}
|
|
85
86
|
},
|
|
86
87
|
"summary": "List all Coupons",
|
|
88
|
+
"operationId": "List all Coupons",
|
|
87
89
|
"description": "Returns a list of your coupons.",
|
|
88
90
|
"tags": [
|
|
89
91
|
"Coupons"
|
|
@@ -138,6 +140,7 @@
|
|
|
138
140
|
}
|
|
139
141
|
},
|
|
140
142
|
"summary": "Create a Coupon",
|
|
143
|
+
"operationId": "Create a Coupon",
|
|
141
144
|
"description": "Creates a new Coupon.",
|
|
142
145
|
"tags": [
|
|
143
146
|
"Coupons"
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"summary": "Retrieve a Coupon",
|
|
29
|
+
"operationId": "Retrieve a Coupon",
|
|
29
30
|
"description": "Retrieves the coupon with the given ID.",
|
|
30
31
|
"tags": [
|
|
31
32
|
"Coupons"
|
|
@@ -66,6 +67,7 @@
|
|
|
66
67
|
}
|
|
67
68
|
},
|
|
68
69
|
"summary": "List all Coupons",
|
|
70
|
+
"operationId": "List all Coupons",
|
|
69
71
|
"description": "Returns a list of your coupons.",
|
|
70
72
|
"tags": [
|
|
71
73
|
"Coupons"
|
|
@@ -103,6 +105,7 @@
|
|
|
103
105
|
}
|
|
104
106
|
},
|
|
105
107
|
"summary": "Create a Coupon",
|
|
108
|
+
"operationId": "Create a Coupon",
|
|
106
109
|
"description": "Creates a new Coupon.",
|
|
107
110
|
"tags": [
|
|
108
111
|
"Coupons"
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"summary": "Retrieve a Coupon",
|
|
46
|
+
"operationId": "Retrieve a Coupon",
|
|
46
47
|
"description": "Retrieves the coupon with the given ID.",
|
|
47
48
|
"tags": [
|
|
48
49
|
"Coupons"
|
|
@@ -84,6 +85,7 @@
|
|
|
84
85
|
}
|
|
85
86
|
},
|
|
86
87
|
"summary": "List all Coupons",
|
|
88
|
+
"operationId": "List all Coupons",
|
|
87
89
|
"description": "Returns a list of your coupons.",
|
|
88
90
|
"tags": [
|
|
89
91
|
"Coupons"
|
|
@@ -138,6 +140,7 @@
|
|
|
138
140
|
}
|
|
139
141
|
},
|
|
140
142
|
"summary": "Create a Coupon",
|
|
143
|
+
"operationId": "Create a Coupon",
|
|
141
144
|
"description": "Creates a new Coupon.",
|
|
142
145
|
"tags": [
|
|
143
146
|
"Coupons"
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"summary": "Retrieve a Coupon",
|
|
29
|
+
"operationId": "Retrieve a Coupon",
|
|
29
30
|
"description": "Retrieves the coupon with the given ID.",
|
|
30
31
|
"tags": [
|
|
31
32
|
"Coupons"
|
|
@@ -66,6 +67,7 @@
|
|
|
66
67
|
}
|
|
67
68
|
},
|
|
68
69
|
"summary": "List all Coupons",
|
|
70
|
+
"operationId": "List all Coupons",
|
|
69
71
|
"description": "Returns a list of your coupons.",
|
|
70
72
|
"tags": [
|
|
71
73
|
"Coupons"
|
|
@@ -103,6 +105,7 @@
|
|
|
103
105
|
}
|
|
104
106
|
},
|
|
105
107
|
"summary": "Create a Coupon",
|
|
108
|
+
"operationId": "Create a Coupon",
|
|
106
109
|
"description": "Creates a new Coupon.",
|
|
107
110
|
"tags": [
|
|
108
111
|
"Coupons"
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"summary": "Retrieve a Message",
|
|
41
|
+
"operationId": "Retrieve a Message",
|
|
41
42
|
"description": "At this point we will utilize our `Message` resource model and reference it in `Response 200`.",
|
|
42
43
|
"tags": [
|
|
43
44
|
"Messages"
|
|
@@ -56,6 +57,7 @@
|
|
|
56
57
|
}
|
|
57
58
|
},
|
|
58
59
|
"summary": "Update a Message",
|
|
60
|
+
"operationId": "Update a Message",
|
|
59
61
|
"description": "",
|
|
60
62
|
"tags": [
|
|
61
63
|
"Messages"
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"summary": "Retrieve a Message",
|
|
41
|
+
"operationId": "Retrieve a Message",
|
|
41
42
|
"description": "At this point we will utilize our `Message` resource model and reference it in `Response 200`.",
|
|
42
43
|
"tags": [
|
|
43
44
|
"Messages"
|
|
@@ -56,6 +57,7 @@
|
|
|
56
57
|
}
|
|
57
58
|
},
|
|
58
59
|
"summary": "Update a Message",
|
|
60
|
+
"operationId": "Update a Message",
|
|
59
61
|
"description": "",
|
|
60
62
|
"tags": [
|
|
61
63
|
"Messages"
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"summary": "List All Tasks",
|
|
34
|
+
"operationId": "List All Tasks",
|
|
34
35
|
"description": "",
|
|
35
36
|
"tags": [],
|
|
36
37
|
"parameters": [
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
}
|
|
72
73
|
},
|
|
73
74
|
"summary": "Retrieve Task",
|
|
75
|
+
"operationId": "Retrieve Task",
|
|
74
76
|
"description": "This is a state transition to another resource",
|
|
75
77
|
"tags": [],
|
|
76
78
|
"parameters": [
|
|
@@ -95,6 +97,7 @@
|
|
|
95
97
|
}
|
|
96
98
|
},
|
|
97
99
|
"summary": "Delete Task",
|
|
100
|
+
"operationId": "Delete Task",
|
|
98
101
|
"description": "",
|
|
99
102
|
"tags": [],
|
|
100
103
|
"parameters": [
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"summary": "List All Tasks",
|
|
34
|
+
"operationId": "List All Tasks",
|
|
34
35
|
"description": "",
|
|
35
36
|
"tags": [],
|
|
36
37
|
"parameters": [
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
}
|
|
72
73
|
},
|
|
73
74
|
"summary": "Retrieve Task",
|
|
75
|
+
"operationId": "Retrieve Task",
|
|
74
76
|
"description": "This is a state transition to another resource",
|
|
75
77
|
"tags": [],
|
|
76
78
|
"parameters": [
|
|
@@ -95,6 +97,7 @@
|
|
|
95
97
|
}
|
|
96
98
|
},
|
|
97
99
|
"summary": "Delete Task",
|
|
100
|
+
"operationId": "Delete Task",
|
|
98
101
|
"description": "",
|
|
99
102
|
"tags": [],
|
|
100
103
|
"parameters": [
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"summary": "Create message",
|
|
23
|
+
"operationId": "Create message",
|
|
23
24
|
"description": "Start out by creating a message for the world to see.",
|
|
24
25
|
"tags": [
|
|
25
26
|
"Quick start"
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
}
|
|
58
59
|
},
|
|
59
60
|
"summary": "Create a new task",
|
|
61
|
+
"operationId": "Create a new task",
|
|
60
62
|
"description": "Now create a task that you need to do at a later date.",
|
|
61
63
|
"tags": [
|
|
62
64
|
"Quick start"
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"summary": "Create message",
|
|
23
|
+
"operationId": "Create message",
|
|
23
24
|
"description": "Start out by creating a message for the world to see.",
|
|
24
25
|
"tags": [
|
|
25
26
|
"Quick start"
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
}
|
|
58
59
|
},
|
|
59
60
|
"summary": "Create a new task",
|
|
61
|
+
"operationId": "Create a new task",
|
|
60
62
|
"description": "Now create a task that you need to do at a later date.",
|
|
61
63
|
"tags": [
|
|
62
64
|
"Quick start"
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"summary": "Retrieve the Entry Point",
|
|
38
|
+
"operationId": "Retrieve the Entry Point",
|
|
38
39
|
"description": "",
|
|
39
40
|
"tags": [],
|
|
40
41
|
"parameters": [],
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
}
|
|
61
62
|
},
|
|
62
63
|
"summary": "Retrieve a Single Gist",
|
|
64
|
+
"operationId": "Retrieve a Single Gist",
|
|
63
65
|
"description": "",
|
|
64
66
|
"tags": [
|
|
65
67
|
"Gist"
|
|
@@ -97,6 +99,7 @@
|
|
|
97
99
|
}
|
|
98
100
|
},
|
|
99
101
|
"summary": "Edit a Gist",
|
|
102
|
+
"operationId": "Edit a Gist",
|
|
100
103
|
"description": "To update a Gist send a JSON with updated value for one or more of the Gist resource attributes. All attributes values (states) from the previous version of this Gist are carried over by default if not included in the hash.",
|
|
101
104
|
"tags": [
|
|
102
105
|
"Gist"
|
|
@@ -142,6 +145,7 @@
|
|
|
142
145
|
}
|
|
143
146
|
},
|
|
144
147
|
"summary": "Delete a Gist",
|
|
148
|
+
"operationId": "Delete a Gist",
|
|
145
149
|
"description": "",
|
|
146
150
|
"tags": [
|
|
147
151
|
"Gist"
|
|
@@ -204,6 +208,7 @@
|
|
|
204
208
|
}
|
|
205
209
|
},
|
|
206
210
|
"summary": "List All Gists",
|
|
211
|
+
"operationId": "List All Gists",
|
|
207
212
|
"description": "",
|
|
208
213
|
"tags": [
|
|
209
214
|
"Gist"
|
|
@@ -237,6 +242,7 @@
|
|
|
237
242
|
}
|
|
238
243
|
},
|
|
239
244
|
"summary": "Create a Gist",
|
|
245
|
+
"operationId": "Create a Gist",
|
|
240
246
|
"description": "To create a new Gist simply provide a JSON hash of the *description* and *content* attributes for the new Gist.\n\nThis action requires an `access_token` with `gist_write` scope.",
|
|
241
247
|
"tags": [
|
|
242
248
|
"Gist"
|
|
@@ -281,6 +287,7 @@
|
|
|
281
287
|
}
|
|
282
288
|
},
|
|
283
289
|
"summary": "Star a Gist",
|
|
290
|
+
"operationId": "Star a Gist",
|
|
284
291
|
"description": "This action requires an `access_token` with `gist_write` scope.",
|
|
285
292
|
"tags": [
|
|
286
293
|
"Gist"
|
|
@@ -311,6 +318,7 @@
|
|
|
311
318
|
}
|
|
312
319
|
},
|
|
313
320
|
"summary": "Unstar a Gist",
|
|
321
|
+
"operationId": "Unstar a Gist",
|
|
314
322
|
"description": "This action requires an `access_token` with `gist_write` scope.",
|
|
315
323
|
"tags": [
|
|
316
324
|
"Gist"
|
|
@@ -348,6 +356,7 @@
|
|
|
348
356
|
}
|
|
349
357
|
},
|
|
350
358
|
"summary": "Check if a Gist is Starred",
|
|
359
|
+
"operationId": "Check if a Gist is Starred",
|
|
351
360
|
"description": "",
|
|
352
361
|
"tags": [
|
|
353
362
|
"Gist"
|
|
@@ -387,6 +396,7 @@
|
|
|
387
396
|
}
|
|
388
397
|
},
|
|
389
398
|
"summary": "Retrieve Authorization",
|
|
399
|
+
"operationId": "Retrieve Authorization",
|
|
390
400
|
"description": "",
|
|
391
401
|
"tags": [
|
|
392
402
|
"Access Authorization and Control"
|
|
@@ -407,6 +417,7 @@
|
|
|
407
417
|
}
|
|
408
418
|
},
|
|
409
419
|
"summary": "Create Authorization",
|
|
420
|
+
"operationId": "Create Authorization",
|
|
410
421
|
"description": "",
|
|
411
422
|
"tags": [
|
|
412
423
|
"Access Authorization and Control"
|
|
@@ -448,6 +459,7 @@
|
|
|
448
459
|
}
|
|
449
460
|
},
|
|
450
461
|
"summary": "Remove an Authorization",
|
|
462
|
+
"operationId": "Remove an Authorization",
|
|
451
463
|
"description": "",
|
|
452
464
|
"tags": [
|
|
453
465
|
"Access Authorization and Control"
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"summary": "Retrieve the Entry Point",
|
|
38
|
+
"operationId": "Retrieve the Entry Point",
|
|
38
39
|
"description": "",
|
|
39
40
|
"tags": [],
|
|
40
41
|
"parameters": [],
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
}
|
|
61
62
|
},
|
|
62
63
|
"summary": "Retrieve a Single Gist",
|
|
64
|
+
"operationId": "Retrieve a Single Gist",
|
|
63
65
|
"description": "",
|
|
64
66
|
"tags": [
|
|
65
67
|
"Gist"
|
|
@@ -97,6 +99,7 @@
|
|
|
97
99
|
}
|
|
98
100
|
},
|
|
99
101
|
"summary": "Edit a Gist",
|
|
102
|
+
"operationId": "Edit a Gist",
|
|
100
103
|
"description": "To update a Gist send a JSON with updated value for one or more of the Gist resource attributes. All attributes values (states) from the previous version of this Gist are carried over by default if not included in the hash.",
|
|
101
104
|
"tags": [
|
|
102
105
|
"Gist"
|
|
@@ -142,6 +145,7 @@
|
|
|
142
145
|
}
|
|
143
146
|
},
|
|
144
147
|
"summary": "Delete a Gist",
|
|
148
|
+
"operationId": "Delete a Gist",
|
|
145
149
|
"description": "",
|
|
146
150
|
"tags": [
|
|
147
151
|
"Gist"
|
|
@@ -204,6 +208,7 @@
|
|
|
204
208
|
}
|
|
205
209
|
},
|
|
206
210
|
"summary": "List All Gists",
|
|
211
|
+
"operationId": "List All Gists",
|
|
207
212
|
"description": "",
|
|
208
213
|
"tags": [
|
|
209
214
|
"Gist"
|
|
@@ -237,6 +242,7 @@
|
|
|
237
242
|
}
|
|
238
243
|
},
|
|
239
244
|
"summary": "Create a Gist",
|
|
245
|
+
"operationId": "Create a Gist",
|
|
240
246
|
"description": "To create a new Gist simply provide a JSON hash of the *description* and *content* attributes for the new Gist.\n\nThis action requires an `access_token` with `gist_write` scope.",
|
|
241
247
|
"tags": [
|
|
242
248
|
"Gist"
|
|
@@ -281,6 +287,7 @@
|
|
|
281
287
|
}
|
|
282
288
|
},
|
|
283
289
|
"summary": "Star a Gist",
|
|
290
|
+
"operationId": "Star a Gist",
|
|
284
291
|
"description": "This action requires an `access_token` with `gist_write` scope.",
|
|
285
292
|
"tags": [
|
|
286
293
|
"Gist"
|
|
@@ -311,6 +318,7 @@
|
|
|
311
318
|
}
|
|
312
319
|
},
|
|
313
320
|
"summary": "Unstar a Gist",
|
|
321
|
+
"operationId": "Unstar a Gist",
|
|
314
322
|
"description": "This action requires an `access_token` with `gist_write` scope.",
|
|
315
323
|
"tags": [
|
|
316
324
|
"Gist"
|
|
@@ -348,6 +356,7 @@
|
|
|
348
356
|
}
|
|
349
357
|
},
|
|
350
358
|
"summary": "Check if a Gist is Starred",
|
|
359
|
+
"operationId": "Check if a Gist is Starred",
|
|
351
360
|
"description": "",
|
|
352
361
|
"tags": [
|
|
353
362
|
"Gist"
|
|
@@ -387,6 +396,7 @@
|
|
|
387
396
|
}
|
|
388
397
|
},
|
|
389
398
|
"summary": "Retrieve Authorization",
|
|
399
|
+
"operationId": "Retrieve Authorization",
|
|
390
400
|
"description": "",
|
|
391
401
|
"tags": [
|
|
392
402
|
"Access Authorization and Control"
|
|
@@ -407,6 +417,7 @@
|
|
|
407
417
|
}
|
|
408
418
|
},
|
|
409
419
|
"summary": "Create Authorization",
|
|
420
|
+
"operationId": "Create Authorization",
|
|
410
421
|
"description": "",
|
|
411
422
|
"tags": [
|
|
412
423
|
"Access Authorization and Control"
|
|
@@ -448,6 +459,7 @@
|
|
|
448
459
|
}
|
|
449
460
|
},
|
|
450
461
|
"summary": "Remove an Authorization",
|
|
462
|
+
"operationId": "Remove an Authorization",
|
|
451
463
|
"description": "",
|
|
452
464
|
"tags": [
|
|
453
465
|
"Access Authorization and Control"
|