openapi.yaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. openapi: 3.0.3
  2. info:
  3. title: Laravel
  4. description: ''
  5. version: 3.9.9
  6. servers:
  7. -
  8. url: 'http://localhost'
  9. paths:
  10. /api/withFormDataParams:
  11. post:
  12. summary: 'Endpoint with body form data parameters.'
  13. description: ''
  14. operationId: endpointWithBodyFormDataParameters
  15. parameters:
  16. -
  17. in: header
  18. name: Custom-Header
  19. description: ''
  20. example: NotSoCustom
  21. schema:
  22. type: string
  23. responses: { }
  24. tags:
  25. - 'Group A'
  26. requestBody:
  27. required: true
  28. content:
  29. multipart/form-data:
  30. schema:
  31. type: object
  32. properties:
  33. name:
  34. type: string
  35. description: 'Name of image.'
  36. example: cat.jpg
  37. nullable: false
  38. image:
  39. type: string
  40. format: binary
  41. description: 'The image.'
  42. nullable: false
  43. required:
  44. - name
  45. - image
  46. security: []
  47. /api/withResponseTag:
  48. get:
  49. summary: ''
  50. description: ''
  51. operationId: getApiWithResponseTag
  52. parameters:
  53. -
  54. in: header
  55. name: Custom-Header
  56. description: ''
  57. example: NotSoCustom
  58. schema:
  59. type: string
  60. responses:
  61. 200:
  62. description: ""
  63. content:
  64. application/json:
  65. schema:
  66. type: object
  67. example:
  68. id: 4
  69. name: banana
  70. color: red
  71. weight: '1 kg'
  72. delicious: true
  73. responseTag: true
  74. properties:
  75. id: { type: integer, example: 4 }
  76. name: { type: string, example: banana }
  77. color: { type: string, example: red }
  78. weight: { type: string, example: '1 kg' }
  79. delicious: { type: boolean, example: true }
  80. responseTag: { type: boolean, example: true }
  81. tags:
  82. - 'Group A'
  83. security: []
  84. /api/withQueryParameters:
  85. get:
  86. summary: ''
  87. description: ''
  88. operationId: getApiWithQueryParameters
  89. parameters:
  90. -
  91. in: query
  92. name: location_id
  93. description: 'The id of the location.'
  94. example: architecto
  95. required: true
  96. schema:
  97. type: string
  98. description: 'The id of the location.'
  99. example: architecto
  100. nullable: false
  101. -
  102. in: query
  103. name: user_id
  104. description: 'The id of the user.'
  105. example: me
  106. required: true
  107. schema:
  108. type: string
  109. description: 'The id of the user.'
  110. example: me
  111. nullable: false
  112. -
  113. in: query
  114. name: page
  115. description: 'The page number.'
  116. example: '4'
  117. required: true
  118. schema:
  119. type: string
  120. description: 'The page number.'
  121. example: '4'
  122. nullable: false
  123. -
  124. in: query
  125. name: filters
  126. description: 'The filters.'
  127. example: architecto
  128. required: false
  129. schema:
  130. type: string
  131. description: 'The filters.'
  132. example: architecto
  133. nullable: false
  134. -
  135. in: query
  136. name: url_encoded
  137. description: 'Used for testing that URL parameters will be URL-encoded where needed.'
  138. example: '+ []&='
  139. required: false
  140. schema:
  141. type: string
  142. description: 'Used for testing that URL parameters will be URL-encoded where needed.'
  143. example: '+ []&='
  144. nullable: false
  145. -
  146. in: header
  147. name: Custom-Header
  148. description: ''
  149. example: NotSoCustom
  150. schema:
  151. type: string
  152. responses:
  153. 200:
  154. description: ""
  155. content:
  156. 'text/plain':
  157. schema:
  158. type: "string"
  159. example: ""
  160. tags:
  161. - 'Group A'
  162. security: []
  163. /api/withAuthTag:
  164. get:
  165. summary: ''
  166. description: ''
  167. operationId: getApiWithAuthTag
  168. parameters:
  169. -
  170. in: header
  171. name: Custom-Header
  172. description: ''
  173. example: NotSoCustom
  174. schema:
  175. type: string
  176. responses:
  177. 200:
  178. description: ""
  179. content:
  180. 'text/plain':
  181. schema:
  182. type: "string"
  183. example: ""
  184. tags:
  185. - 'Group A'
  186. '/api/echoesUrlParameters/{param}/{param2}/{param3}/{param4}':
  187. get:
  188. summary: ''
  189. description: ''
  190. operationId: getApiEchoesUrlParametersParamParam2Param3Param4
  191. parameters:
  192. -
  193. in: query
  194. name: something
  195. description: ''
  196. example: architecto
  197. required: false
  198. schema:
  199. type: string
  200. description: ''
  201. example: architecto
  202. nullable: false
  203. -
  204. in: header
  205. name: Custom-Header
  206. description: ''
  207. example: NotSoCustom
  208. schema:
  209. type: string
  210. responses:
  211. 200:
  212. description: ''
  213. content:
  214. application/json:
  215. schema:
  216. type: object
  217. example:
  218. param: '4'
  219. param2: architecto
  220. param3: architecto
  221. param4: null
  222. properties:
  223. param: { type: string, example: '4' }
  224. param2: { type: string, example: architecto }
  225. param3: { type: string, example: architecto }
  226. param4: { type: string, example: null }
  227. tags:
  228. - Other😎
  229. security: []
  230. parameters:
  231. -
  232. in: path
  233. name: param
  234. description: ''
  235. example: '4'
  236. required: true
  237. schema:
  238. type: string
  239. -
  240. in: path
  241. name: param2
  242. description: ''
  243. required: true
  244. schema:
  245. type: string
  246. example: architecto
  247. -
  248. in: path
  249. name: param3
  250. description: 'Optional parameter.'
  251. required: true
  252. schema:
  253. type: string
  254. examples:
  255. omitted:
  256. summary: 'When the value is omitted'
  257. value: ''
  258. present:
  259. summary: 'When the value is present'
  260. value: architecto
  261. -
  262. in: path
  263. name: param4
  264. description: 'Optional parameter.'
  265. required: true
  266. schema:
  267. type: string
  268. examples:
  269. omitted:
  270. summary: 'When the value is omitted'
  271. value: ''
  272. /api/withBodyParametersAsArray:
  273. post:
  274. summary: 'Endpoint with body parameters as array.'
  275. description: ''
  276. operationId: endpointWithBodyParametersAsArray
  277. parameters:
  278. - in: header
  279. name: Custom-Header
  280. description: ''
  281. example: NotSoCustom
  282. schema:
  283. type: string
  284. responses: {}
  285. tags:
  286. - Group A
  287. requestBody:
  288. required: true
  289. content:
  290. application/json:
  291. schema:
  292. type: array
  293. description: Details.
  294. example:
  295. - first_name: 'John'
  296. last_name: 'Doe'
  297. contacts:
  298. - first_name: Janelle
  299. last_name: Monáe
  300. roles: [Admin]
  301. items:
  302. type: object
  303. properties:
  304. first_name: { type: string, description: 'The first name of the user.', example: John, nullable: false }
  305. last_name: { type: string, description: 'The last name of the user.', example: Doe, nullable: false}
  306. contacts: { type: array, description: 'Contact info', example: [ [ ] ], items: { type: object, properties: { first_name: { type: string, description: 'The first name of the contact.', example: Janelle, nullable: false }, last_name: { type: string, description: 'The last name of the contact.', example: Monáe, nullable: false } }, required: [ first_name, last_name ] } }
  307. roles: { type: array, description: 'The name of the role.', example: [ Admin ], items: { type: string } }
  308. required:
  309. - first_name
  310. - last_name
  311. - contacts
  312. - roles
  313. security: [ ]
  314. tags:
  315. -
  316. name: 'Group A'
  317. description: ''
  318. -
  319. name: Other😎
  320. description: ''