openapi.yaml 11 KB

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