Advertisement
Guest User

SwaggerPet

a guest
Nov 19th, 2019
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "version": "2019-11-19T10:18:49Z",
  5. "title": "Pets"
  6. },
  7. "host": "[host].execute-api.us-west-2.amazonaws.com",
  8. "basePath": "/test",
  9. "schemes": [
  10. "https"
  11. ],
  12. "paths": {
  13. "/pets": {
  14. "get": {
  15. "produces": [
  16. "application/json"
  17. ],
  18. "parameters": [
  19. {
  20. "name": "type",
  21. "in": "query",
  22. "required": false,
  23. "type": "string"
  24. },
  25. {
  26. "name": "page",
  27. "in": "query",
  28. "required": false,
  29. "type": "string"
  30. }
  31. ],
  32. "responses": {
  33. "200": {
  34. "description": "200 response",
  35. "schema": {
  36. "$ref": "#/definitions/Empty"
  37. }
  38. }
  39. }
  40. },
  41. "options": {
  42. "consumes": [
  43. "application/json"
  44. ],
  45. "produces": [
  46. "application/json"
  47. ],
  48. "responses": {
  49. "200": {
  50. "description": "200 response",
  51. "schema": {
  52. "$ref": "#/definitions/Empty"
  53. },
  54. "headers": {
  55. "Access-Control-Allow-Origin": {
  56. "type": "string"
  57. },
  58. "Access-Control-Allow-Methods": {
  59. "type": "string"
  60. },
  61. "Access-Control-Allow-Headers": {
  62. "type": "string"
  63. }
  64. }
  65. }
  66. }
  67. }
  68. },
  69. "/pets/flattenall": {
  70. "get": {
  71. "produces": [
  72. "application/json"
  73. ],
  74. "responses": {
  75. "200": {
  76. "description": "200 response",
  77. "schema": {
  78. "$ref": "#/definitions/PetsModelFlattenAll"
  79. }
  80. }
  81. }
  82. }
  83. },
  84. "/pets/flattensome": {
  85. "get": {
  86. "produces": [
  87. "application/json"
  88. ],
  89. "responses": {
  90. "200": {
  91. "description": "200 response",
  92. "schema": {
  93. "$ref": "#/definitions/PetsModelFlattenSome"
  94. }
  95. }
  96. }
  97. }
  98. },
  99. "/pets/lambdaflattensome": {
  100. "get": {
  101. "produces": [
  102. "application/json"
  103. ],
  104. "responses": {
  105. "200": {
  106. "description": "200 response",
  107. "schema": {
  108. "$ref": "#/definitions/PetsModelFlattenSome"
  109. }
  110. }
  111. }
  112. }
  113. },
  114. "/pets/noflatten": {
  115. "get": {
  116. "produces": [
  117. "application/json"
  118. ],
  119. "responses": {
  120. "200": {
  121. "description": "200 response",
  122. "schema": {
  123. "$ref": "#/definitions/PetsModelNoFlatten"
  124. }
  125. }
  126. }
  127. }
  128. }
  129. },
  130. "definitions": {
  131. "PetsModelFlattenAll": {
  132. "type": "object",
  133. "properties": {
  134. "listings": {
  135. "type": "array",
  136. "items": {
  137. "type": "string"
  138. }
  139. }
  140. },
  141. "title": "PetsModelFlattenAll"
  142. },
  143. "PetsModelNoFlatten": {
  144. "title": "PetsModelNoFlatten",
  145. "type": "array",
  146. "items": {
  147. "type": "object",
  148. "properties": {
  149. "number": {
  150. "type": "integer"
  151. },
  152. "class": {
  153. "type": "string"
  154. },
  155. "salesPrice": {
  156. "type": "number"
  157. }
  158. }
  159. }
  160. },
  161. "Empty": {
  162. "type": "object",
  163. "title": "Empty Schema"
  164. },
  165. "PetsModelFlattenSome": {
  166. "title": "PetsModelFlattenSome",
  167. "type": "array",
  168. "items": {
  169. "type": "object",
  170. "properties": {
  171. "description": {
  172. "type": "string"
  173. },
  174. "askingPrice": {
  175. "type": "number"
  176. }
  177. }
  178. }
  179. }
  180. }
  181. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement