apib2swagger 1.9.2 → 1.13.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.
Files changed (117) hide show
  1. package/.github/workflows/codeql-analysis.yml +71 -0
  2. package/.github/workflows/docker-publish.yml +70 -0
  3. package/.github/workflows/nodejs.yml +26 -0
  4. package/.travis.yml +3 -5
  5. package/Dockerfile +5 -0
  6. package/LICENSE +0 -0
  7. package/README.md +31 -5
  8. package/bin/apib2swagger.js +43 -17
  9. package/index.js +92 -374
  10. package/package.json +6 -4
  11. package/src/escape_json_pointer.js +0 -0
  12. package/src/mson_to_json_schema.js +13 -8
  13. package/src/parameters.js +111 -0
  14. package/src/requests.js +344 -0
  15. package/src/responses.js +181 -0
  16. package/src/util.js +127 -0
  17. package/test/input/Attributes.md +0 -0
  18. package/test/input/Issue-#15.md +0 -0
  19. package/test/input/Issue-#22.md +0 -0
  20. package/test/input/Issue-#23.md +0 -0
  21. package/test/input/Issue-#26.md +0 -0
  22. package/test/input/Issue-#29.md +0 -0
  23. package/test/input/Issue-#33.md +0 -0
  24. package/test/input/Issue-#35.md +0 -0
  25. package/test/input/Issue-#36.md +0 -0
  26. package/test/input/Issue-#38.md +0 -0
  27. package/test/input/Issue-#49.md +24 -0
  28. package/test/input/OpenAPI3_attributes.md +36 -0
  29. package/test/input/OpenAPI3_headers.md +74 -0
  30. package/test/input/OpenAPI3_includes.md +22 -0
  31. package/test/input/OpenAPI3_requests.md +162 -0
  32. package/test/input/OpenAPI3_responses.md +177 -0
  33. package/test/input/Schema.md +0 -0
  34. package/test/input/apiblueprint_uber.md +0 -0
  35. package/test/input/apiblueprint_valid_simple.md +0 -0
  36. package/test/input/includes/resource-request-body-2.json +3 -0
  37. package/test/input/includes/resource-request-body.json +3 -0
  38. package/test/input/includes/resource-request-schema.json +9 -0
  39. package/test/input/includes/resource-response-body-2.json +3 -0
  40. package/test/input/includes/resource-response-body.json +3 -0
  41. package/test/input/includes/resource-response-schema.json +9 -0
  42. package/test/input/schema_without_body.md +17 -0
  43. package/test/meta_schema.json +0 -0
  44. package/test/openAPI_30_schema.json +1662 -0
  45. package/test/output/01. Simplest API.json +1 -0
  46. package/test/output/01. Simplest API.ref.json +1 -0
  47. package/test/output/02. Resource and Actions.json +2 -0
  48. package/test/output/02. Resource and Actions.ref.json +2 -0
  49. package/test/output/03. Named Resource and Actions.json +2 -0
  50. package/test/output/03. Named Resource and Actions.ref.json +2 -0
  51. package/test/output/04. Grouping Resources.json +2 -0
  52. package/test/output/04. Grouping Resources.ref.json +2 -0
  53. package/test/output/05. Responses.json +7 -1
  54. package/test/output/05. Responses.ref.json +7 -1
  55. package/test/output/06. Requests.json +9 -3
  56. package/test/output/06. Requests.ref.json +9 -3
  57. package/test/output/07. Parameters.json +12 -5
  58. package/test/output/07. Parameters.ref.json +12 -5
  59. package/test/output/08. Attributes.json +1 -0
  60. package/test/output/08. Attributes.ref.json +1 -0
  61. package/test/output/09. Advanced Attributes.json +3 -0
  62. package/test/output/09. Advanced Attributes.ref.json +3 -0
  63. package/test/output/10. Data Structures.json +3 -0
  64. package/test/output/10. Data Structures.ref.json +3 -0
  65. package/test/output/11. Resource Model.json +7 -1
  66. package/test/output/11. Resource Model.ref.json +7 -1
  67. package/test/output/12. Advanced Action.json +3 -0
  68. package/test/output/12. Advanced Action.ref.json +3 -0
  69. package/test/output/13. Named Endpoints.json +12 -2
  70. package/test/output/13. Named Endpoints.ref.json +12 -2
  71. package/test/output/Attributes.json +1 -0
  72. package/test/output/Attributes.ref.json +1 -0
  73. package/test/output/Gist Fox API + Auth.json +47 -7
  74. package/test/output/Gist Fox API + Auth.ref.json +47 -7
  75. package/test/output/Issue-#15.json +3 -0
  76. package/test/output/Issue-#15.ref.json +3 -0
  77. package/test/output/Issue-#22.json +0 -0
  78. package/test/output/Issue-#22.ref.json +0 -0
  79. package/test/output/Issue-#23.json +1 -0
  80. package/test/output/Issue-#23.ref.json +1 -0
  81. package/test/output/Issue-#26.json +2 -0
  82. package/test/output/Issue-#26.ref.json +2 -0
  83. package/test/output/Issue-#29.json +2 -0
  84. package/test/output/Issue-#29.ref.json +2 -0
  85. package/test/output/Issue-#33.json +9 -8
  86. package/test/output/Issue-#33.ref.json +9 -8
  87. package/test/output/Issue-#35.json +0 -0
  88. package/test/output/Issue-#35.ref.json +0 -0
  89. package/test/output/Issue-#36.json +1 -0
  90. package/test/output/Issue-#36.ref.json +1 -0
  91. package/test/output/Issue-#38.bearer.json +53 -52
  92. package/test/output/Issue-#38.json +1 -0
  93. package/test/output/Issue-#38.ref.json +1 -0
  94. package/test/output/Issue-#49.json +141 -0
  95. package/test/output/Issue-#49.ref.json +126 -0
  96. package/test/output/OpenAPI3_attributes.json +199 -0
  97. package/test/output/OpenAPI3_attributes.ref.json +173 -0
  98. package/test/output/OpenAPI3_headers.json +169 -0
  99. package/test/output/OpenAPI3_headers.ref.json +169 -0
  100. package/test/output/OpenAPI3_includes.json +66 -0
  101. package/test/output/OpenAPI3_includes.ref.json +66 -0
  102. package/test/output/OpenAPI3_requests.json +326 -0
  103. package/test/output/OpenAPI3_requests.ref.json +321 -0
  104. package/test/output/OpenAPI3_responses.json +255 -0
  105. package/test/output/OpenAPI3_responses.ref.json +245 -0
  106. package/test/output/Schema.json +3 -0
  107. package/test/output/Schema.ref.json +3 -0
  108. package/test/output/apiblueprint_uber.json +5 -0
  109. package/test/output/apiblueprint_uber.ref.json +5 -0
  110. package/test/output/apiblueprint_valid_simple.json +47 -7
  111. package/test/output/apiblueprint_valid_simple.ref.json +47 -7
  112. package/test/output/schema_without_body.json +52 -0
  113. package/test/output/schema_without_body.ref.json +52 -0
  114. package/test/swagger_20_schema.json +0 -0
  115. package/test/test.js +31 -15
  116. package/test/util.test.js +151 -0
  117. package/.npmignore +0 -35
@@ -18,6 +18,7 @@
18
18
  }
19
19
  },
20
20
  "summary": "",
21
+ "operationId": "",
21
22
  "description": "",
22
23
  "tags": [],
23
24
  "parameters": [],
@@ -18,6 +18,7 @@
18
18
  }
19
19
  },
20
20
  "summary": "",
21
+ "operationId": "",
21
22
  "description": "",
22
23
  "tags": [],
23
24
  "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": "",
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"
@@ -11,7 +11,11 @@
11
11
  "responses": {
12
12
  "200": {
13
13
  "description": "OK",
14
- "headers": {},
14
+ "headers": {
15
+ "X-My-Message-Header": {
16
+ "type": "string"
17
+ }
18
+ },
15
19
  "examples": {
16
20
  "application/json": {
17
21
  "message": "Hello World!"
@@ -20,6 +24,7 @@
20
24
  }
21
25
  },
22
26
  "summary": "Retrieve a Message",
27
+ "operationId": "Retrieve a Message",
23
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.",
24
29
  "tags": [
25
30
  "Messages"
@@ -38,6 +43,7 @@
38
43
  }
39
44
  },
40
45
  "summary": "Update a Message",
46
+ "operationId": "Update a Message",
41
47
  "description": "",
42
48
  "tags": [
43
49
  "Messages"
@@ -11,7 +11,11 @@
11
11
  "responses": {
12
12
  "200": {
13
13
  "description": "OK",
14
- "headers": {},
14
+ "headers": {
15
+ "X-My-Message-Header": {
16
+ "type": "string"
17
+ }
18
+ },
15
19
  "examples": {
16
20
  "application/json": {
17
21
  "message": "Hello World!"
@@ -20,6 +24,7 @@
20
24
  }
21
25
  },
22
26
  "summary": "Retrieve a Message",
27
+ "operationId": "Retrieve a Message",
23
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.",
24
29
  "tags": [
25
30
  "Messages"
@@ -38,6 +43,7 @@
38
43
  }
39
44
  },
40
45
  "summary": "Update a Message",
46
+ "operationId": "Update a Message",
41
47
  "description": "",
42
48
  "tags": [
43
49
  "Messages"
@@ -11,7 +11,11 @@
11
11
  "responses": {
12
12
  "200": {
13
13
  "description": "OK",
14
- "headers": {},
14
+ "headers": {
15
+ "X-My-Message-Header": {
16
+ "type": "string"
17
+ }
18
+ },
15
19
  "examples": {
16
20
  "application/json": {
17
21
  "message": "Hello World!"
@@ -20,15 +24,16 @@
20
24
  }
21
25
  },
22
26
  "summary": "Retrieve a Message",
27
+ "operationId": "Retrieve a Message",
23
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.",
24
29
  "tags": [
25
30
  "Messages"
26
31
  ],
27
32
  "parameters": [
28
33
  {
29
- "description": "e.g. text/plain",
30
- "in": "header",
31
34
  "name": "Accept",
35
+ "in": "header",
36
+ "description": "e.g. text/plain",
32
37
  "required": false,
33
38
  "x-example": "text/plain",
34
39
  "type": "string"
@@ -47,6 +52,7 @@
47
52
  }
48
53
  },
49
54
  "summary": "Update a Message",
55
+ "operationId": "Update a Message",
50
56
  "description": "",
51
57
  "tags": [
52
58
  "Messages"
@@ -11,7 +11,11 @@
11
11
  "responses": {
12
12
  "200": {
13
13
  "description": "OK",
14
- "headers": {},
14
+ "headers": {
15
+ "X-My-Message-Header": {
16
+ "type": "string"
17
+ }
18
+ },
15
19
  "examples": {
16
20
  "application/json": {
17
21
  "message": "Hello World!"
@@ -20,15 +24,16 @@
20
24
  }
21
25
  },
22
26
  "summary": "Retrieve a Message",
27
+ "operationId": "Retrieve a Message",
23
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.",
24
29
  "tags": [
25
30
  "Messages"
26
31
  ],
27
32
  "parameters": [
28
33
  {
29
- "description": "e.g. text/plain",
30
- "in": "header",
31
34
  "name": "Accept",
35
+ "in": "header",
36
+ "description": "e.g. text/plain",
32
37
  "required": false,
33
38
  "x-example": "text/plain",
34
39
  "type": "string"
@@ -47,6 +52,7 @@
47
52
  }
48
53
  },
49
54
  "summary": "Update a Message",
55
+ "operationId": "Update a Message",
50
56
  "description": "",
51
57
  "tags": [
52
58
  "Messages"
@@ -11,7 +11,11 @@
11
11
  "responses": {
12
12
  "200": {
13
13
  "description": "OK",
14
- "headers": {},
14
+ "headers": {
15
+ "X-My-Message-Header": {
16
+ "type": "string"
17
+ }
18
+ },
15
19
  "examples": {
16
20
  "application/json": {
17
21
  "id": 1,
@@ -21,6 +25,7 @@
21
25
  }
22
26
  },
23
27
  "summary": "Retrieve a Message",
28
+ "operationId": "Retrieve a Message",
24
29
  "description": "",
25
30
  "tags": [
26
31
  "Messages"
@@ -35,12 +40,12 @@
35
40
  "type": "number"
36
41
  },
37
42
  {
38
- "description": "e.g. text/plain",
39
- "in": "header",
40
43
  "name": "Accept",
44
+ "in": "header",
45
+ "description": "e.g. text/plain",
41
46
  "required": false,
42
- "type": "string",
43
- "x-example": "text/plain"
47
+ "x-example": "text/plain",
48
+ "type": "string"
44
49
  }
45
50
  ],
46
51
  "produces": [
@@ -56,6 +61,7 @@
56
61
  }
57
62
  },
58
63
  "summary": "Update a Message",
64
+ "operationId": "Update a Message",
59
65
  "description": "",
60
66
  "tags": [
61
67
  "Messages"
@@ -112,6 +118,7 @@
112
118
  }
113
119
  },
114
120
  "summary": "Retrieve all Messages",
121
+ "operationId": "Retrieve all Messages",
115
122
  "description": "",
116
123
  "tags": [
117
124
  "Messages"
@@ -11,7 +11,11 @@
11
11
  "responses": {
12
12
  "200": {
13
13
  "description": "OK",
14
- "headers": {},
14
+ "headers": {
15
+ "X-My-Message-Header": {
16
+ "type": "string"
17
+ }
18
+ },
15
19
  "examples": {
16
20
  "application/json": {
17
21
  "id": 1,
@@ -21,6 +25,7 @@
21
25
  }
22
26
  },
23
27
  "summary": "Retrieve a Message",
28
+ "operationId": "Retrieve a Message",
24
29
  "description": "",
25
30
  "tags": [
26
31
  "Messages"
@@ -35,12 +40,12 @@
35
40
  "type": "number"
36
41
  },
37
42
  {
38
- "description": "e.g. text/plain",
39
- "in": "header",
40
43
  "name": "Accept",
44
+ "in": "header",
45
+ "description": "e.g. text/plain",
41
46
  "required": false,
42
- "type": "string",
43
- "x-example": "text/plain"
47
+ "x-example": "text/plain",
48
+ "type": "string"
44
49
  }
45
50
  ],
46
51
  "produces": [
@@ -56,6 +61,7 @@
56
61
  }
57
62
  },
58
63
  "summary": "Update a Message",
64
+ "operationId": "Update a Message",
59
65
  "description": "",
60
66
  "tags": [
61
67
  "Messages"
@@ -112,6 +118,7 @@
112
118
  }
113
119
  },
114
120
  "summary": "Retrieve all Messages",
121
+ "operationId": "Retrieve all Messages",
115
122
  "description": "",
116
123
  "tags": [
117
124
  "Messages"
@@ -36,6 +36,7 @@
36
36
  }
37
37
  },
38
38
  "summary": "Retrieve a Coupon",
39
+ "operationId": "Retrieve a Coupon",
39
40
  "description": "Retrieves the coupon with the given ID.",
40
41
  "tags": [
41
42
  "Coupons"
@@ -36,6 +36,7 @@
36
36
  }
37
37
  },
38
38
  "summary": "Retrieve a Coupon",
39
+ "operationId": "Retrieve a Coupon",
39
40
  "description": "Retrieves the coupon with the given ID.",
40
41
  "tags": [
41
42
  "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"
@@ -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"
@@ -11,7 +11,11 @@
11
11
  "responses": {
12
12
  "200": {
13
13
  "description": "This is the `application/vnd.siren+json` message resource representation.",
14
- "headers": {},
14
+ "headers": {
15
+ "Location": {
16
+ "type": "string"
17
+ }
18
+ },
15
19
  "examples": {
16
20
  "application/vnd.siren+json": {
17
21
  "class": [
@@ -34,6 +38,7 @@
34
38
  }
35
39
  },
36
40
  "summary": "Retrieve a Message",
41
+ "operationId": "Retrieve a Message",
37
42
  "description": "At this point we will utilize our `Message` resource model and reference it in `Response 200`.",
38
43
  "tags": [
39
44
  "Messages"
@@ -52,6 +57,7 @@
52
57
  }
53
58
  },
54
59
  "summary": "Update a Message",
60
+ "operationId": "Update a Message",
55
61
  "description": "",
56
62
  "tags": [
57
63
  "Messages"
@@ -11,7 +11,11 @@
11
11
  "responses": {
12
12
  "200": {
13
13
  "description": "This is the `application/vnd.siren+json` message resource representation.",
14
- "headers": {},
14
+ "headers": {
15
+ "Location": {
16
+ "type": "string"
17
+ }
18
+ },
15
19
  "examples": {
16
20
  "application/vnd.siren+json": {
17
21
  "class": [
@@ -34,6 +38,7 @@
34
38
  }
35
39
  },
36
40
  "summary": "Retrieve a Message",
41
+ "operationId": "Retrieve a Message",
37
42
  "description": "At this point we will utilize our `Message` resource model and reference it in `Response 200`.",
38
43
  "tags": [
39
44
  "Messages"
@@ -52,6 +57,7 @@
52
57
  }
53
58
  },
54
59
  "summary": "Update a Message",
60
+ "operationId": "Update a Message",
55
61
  "description": "",
56
62
  "tags": [
57
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": [
@@ -11,11 +11,16 @@
11
11
  "responses": {
12
12
  "201": {
13
13
  "description": "Created",
14
- "headers": {},
14
+ "headers": {
15
+ "Location": {
16
+ "type": "string"
17
+ }
18
+ },
15
19
  "examples": {}
16
20
  }
17
21
  },
18
22
  "summary": "Create message",
23
+ "operationId": "Create message",
19
24
  "description": "Start out by creating a message for the world to see.",
20
25
  "tags": [
21
26
  "Quick start"
@@ -44,11 +49,16 @@
44
49
  "responses": {
45
50
  "201": {
46
51
  "description": "Created",
47
- "headers": {},
52
+ "headers": {
53
+ "Location": {
54
+ "type": "string"
55
+ }
56
+ },
48
57
  "examples": {}
49
58
  }
50
59
  },
51
60
  "summary": "Create a new task",
61
+ "operationId": "Create a new task",
52
62
  "description": "Now create a task that you need to do at a later date.",
53
63
  "tags": [
54
64
  "Quick start"
@@ -11,11 +11,16 @@
11
11
  "responses": {
12
12
  "201": {
13
13
  "description": "Created",
14
- "headers": {},
14
+ "headers": {
15
+ "Location": {
16
+ "type": "string"
17
+ }
18
+ },
15
19
  "examples": {}
16
20
  }
17
21
  },
18
22
  "summary": "Create message",
23
+ "operationId": "Create message",
19
24
  "description": "Start out by creating a message for the world to see.",
20
25
  "tags": [
21
26
  "Quick start"
@@ -44,11 +49,16 @@
44
49
  "responses": {
45
50
  "201": {
46
51
  "description": "Created",
47
- "headers": {},
52
+ "headers": {
53
+ "Location": {
54
+ "type": "string"
55
+ }
56
+ },
48
57
  "examples": {}
49
58
  }
50
59
  },
51
60
  "summary": "Create a new task",
61
+ "operationId": "Create a new task",
52
62
  "description": "Now create a task that you need to do at a later date.",
53
63
  "tags": [
54
64
  "Quick start"
@@ -16,6 +16,7 @@
16
16
  }
17
17
  },
18
18
  "summary": "",
19
+ "operationId": "",
19
20
  "description": "",
20
21
  "tags": [],
21
22
  "parameters": [