collection.json 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. {
  2. "variables": [],
  3. "info": {
  4. "name": "Laravel API",
  5. "_postman_id": "",
  6. "description": "",
  7. "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.0.0\/collection.json"
  8. },
  9. "item": [
  10. {
  11. "name": "Group A",
  12. "description": "",
  13. "item": [
  14. {
  15. "name": "Example title.",
  16. "request": {
  17. "url": {
  18. "protocol": "http",
  19. "host": "localhost",
  20. "path": "api\/withDescription",
  21. "query": []
  22. },
  23. "method": "GET",
  24. "header": [
  25. {
  26. "key": "Authorization",
  27. "value": "customAuthToken"
  28. },
  29. {
  30. "key": "Custom-Header",
  31. "value": "NotSoCustom"
  32. },
  33. {
  34. "key": "Accept",
  35. "value": "application\/json"
  36. },
  37. {
  38. "key": "Content-Type",
  39. "value": "application\/json"
  40. }
  41. ],
  42. "body": {
  43. "mode": "raw",
  44. "raw": "[]"
  45. },
  46. "description": "This will be the long description.\nIt can also be multiple lines long.",
  47. "response": []
  48. }
  49. },
  50. {
  51. "name": "api\/withResponseTag",
  52. "request": {
  53. "url": {
  54. "protocol": "http",
  55. "host": "localhost",
  56. "path": "api\/withResponseTag",
  57. "query": []
  58. },
  59. "method": "GET",
  60. "header": [
  61. {
  62. "key": "Authorization",
  63. "value": "customAuthToken"
  64. },
  65. {
  66. "key": "Custom-Header",
  67. "value": "NotSoCustom"
  68. },
  69. {
  70. "key": "Accept",
  71. "value": "application\/json"
  72. },
  73. {
  74. "key": "Content-Type",
  75. "value": "application\/json"
  76. }
  77. ],
  78. "body": {
  79. "mode": "raw",
  80. "raw": "[]"
  81. },
  82. "description": "",
  83. "response": []
  84. }
  85. },
  86. {
  87. "name": "Endpoint with body parameters.",
  88. "request": {
  89. "url": {
  90. "protocol": "http",
  91. "host": "localhost",
  92. "path": "api\/withBodyParameters",
  93. "query": []
  94. },
  95. "method": "POST",
  96. "header": [
  97. {
  98. "key": "Authorization",
  99. "value": "customAuthToken"
  100. },
  101. {
  102. "key": "Custom-Header",
  103. "value": "NotSoCustom"
  104. },
  105. {
  106. "key": "Accept",
  107. "value": "application\/json"
  108. },
  109. {
  110. "key": "Content-Type",
  111. "value": "application\/json"
  112. }
  113. ],
  114. "body": {
  115. "mode": "raw",
  116. "raw": "{\n \"user_id\": 9,\n \"room_id\": \"consequatur\",\n \"forever\": false,\n \"another_one\": 11613.31890586,\n \"yet_another_param\": {\n \"name\": \"consequatur\"\n },\n \"even_more_param\": [\n 11613.31890586\n ],\n \"book\": {\n \"name\": \"consequatur\",\n \"author_id\": 17,\n \"pages_count\": 17\n },\n \"ids\": [\n 17\n ],\n \"users\": [\n {\n \"first_name\": \"John\",\n \"last_name\": \"Doe\"\n }\n ]\n}"
  117. },
  118. "description": "",
  119. "response": []
  120. }
  121. },
  122. {
  123. "name": "api\/withQueryParameters",
  124. "request": {
  125. "url": {
  126. "protocol": "http",
  127. "host": "localhost",
  128. "path": "api\/withQueryParameters",
  129. "query": [
  130. {
  131. "key": "location_id",
  132. "value": "consequatur",
  133. "description": "The id of the location.",
  134. "disabled": false
  135. },
  136. {
  137. "key": "user_id",
  138. "value": "me",
  139. "description": "The id of the user.",
  140. "disabled": false
  141. },
  142. {
  143. "key": "page",
  144. "value": "4",
  145. "description": "The page number.",
  146. "disabled": false
  147. },
  148. {
  149. "key": "filters",
  150. "value": "consequatur",
  151. "description": "The filters.",
  152. "disabled": false
  153. },
  154. {
  155. "key": "url_encoded",
  156. "value": "%2B+%5B%5D%26%3D",
  157. "description": "Used for testing that URL parameters will be URL-encoded where needed.",
  158. "disabled": false
  159. }
  160. ]
  161. },
  162. "method": "GET",
  163. "header": [
  164. {
  165. "key": "Authorization",
  166. "value": "customAuthToken"
  167. },
  168. {
  169. "key": "Custom-Header",
  170. "value": "NotSoCustom"
  171. },
  172. {
  173. "key": "Accept",
  174. "value": "application\/json"
  175. },
  176. {
  177. "key": "Content-Type",
  178. "value": "application\/json"
  179. }
  180. ],
  181. "body": {
  182. "mode": "raw",
  183. "raw": "[]"
  184. },
  185. "description": "",
  186. "response": []
  187. }
  188. },
  189. {
  190. "name": "api\/withAuthTag",
  191. "request": {
  192. "url": {
  193. "protocol": "http",
  194. "host": "localhost",
  195. "path": "api\/withAuthTag",
  196. "query": []
  197. },
  198. "method": "GET",
  199. "header": [
  200. {
  201. "key": "Authorization",
  202. "value": "customAuthToken"
  203. },
  204. {
  205. "key": "Custom-Header",
  206. "value": "NotSoCustom"
  207. },
  208. {
  209. "key": "Accept",
  210. "value": "application\/json"
  211. },
  212. {
  213. "key": "Content-Type",
  214. "value": "application\/json"
  215. }
  216. ],
  217. "body": {
  218. "mode": "raw",
  219. "raw": "[]"
  220. },
  221. "description": "",
  222. "response": []
  223. }
  224. },
  225. {
  226. "name": "api\/withEloquentApiResource",
  227. "request": {
  228. "url": {
  229. "protocol": "http",
  230. "host": "localhost",
  231. "path": "api\/withEloquentApiResource",
  232. "query": []
  233. },
  234. "method": "GET",
  235. "header": [
  236. {
  237. "key": "Authorization",
  238. "value": "customAuthToken"
  239. },
  240. {
  241. "key": "Custom-Header",
  242. "value": "NotSoCustom"
  243. },
  244. {
  245. "key": "Accept",
  246. "value": "application\/json"
  247. },
  248. {
  249. "key": "Content-Type",
  250. "value": "application\/json"
  251. }
  252. ],
  253. "body": {
  254. "mode": "raw",
  255. "raw": "[]"
  256. },
  257. "description": "",
  258. "response": []
  259. }
  260. },
  261. {
  262. "name": "api\/withMultipleResponseTagsAndStatusCode",
  263. "request": {
  264. "url": {
  265. "protocol": "http",
  266. "host": "localhost",
  267. "path": "api\/withMultipleResponseTagsAndStatusCode",
  268. "query": []
  269. },
  270. "method": "POST",
  271. "header": [
  272. {
  273. "key": "Authorization",
  274. "value": "customAuthToken"
  275. },
  276. {
  277. "key": "Custom-Header",
  278. "value": "NotSoCustom"
  279. },
  280. {
  281. "key": "Accept",
  282. "value": "application\/json"
  283. },
  284. {
  285. "key": "Content-Type",
  286. "value": "application\/json"
  287. }
  288. ],
  289. "body": {
  290. "mode": "raw",
  291. "raw": "[]"
  292. },
  293. "description": "",
  294. "response": []
  295. }
  296. }
  297. ]
  298. },
  299. {
  300. "name": "Other\ud83d\ude0e",
  301. "description": "",
  302. "item": [
  303. {
  304. "name": "api\/withEloquentApiResourceCollectionClass",
  305. "request": {
  306. "url": {
  307. "protocol": "http",
  308. "host": "localhost",
  309. "path": "api\/withEloquentApiResourceCollectionClass",
  310. "query": []
  311. },
  312. "method": "GET",
  313. "header": [
  314. {
  315. "key": "Authorization",
  316. "value": "customAuthToken"
  317. },
  318. {
  319. "key": "Custom-Header",
  320. "value": "NotSoCustom"
  321. },
  322. {
  323. "key": "Accept",
  324. "value": "application\/json"
  325. },
  326. {
  327. "key": "Content-Type",
  328. "value": "application\/json"
  329. }
  330. ],
  331. "body": {
  332. "mode": "raw",
  333. "raw": "[]"
  334. },
  335. "description": "",
  336. "response": []
  337. }
  338. },
  339. {
  340. "name": "api\/echoesUrlParameters\/{param}-{param2}\/{param3?}",
  341. "request": {
  342. "url": {
  343. "protocol": "http",
  344. "host": "localhost",
  345. "path": "api\/echoesUrlParameters\/{param}-{param2}\/:param3",
  346. "query": [
  347. {
  348. "key": "something",
  349. "value": "consequatur",
  350. "description": "",
  351. "disabled": false
  352. }
  353. ],
  354. "variable": [
  355. {
  356. "id": "param",
  357. "key": "param",
  358. "value": "4",
  359. "description": ""
  360. },
  361. {
  362. "id": "param2",
  363. "key": "param2",
  364. "value": "consequatur",
  365. "description": ""
  366. }
  367. ]
  368. },
  369. "method": "GET",
  370. "header": [
  371. {
  372. "key": "Authorization",
  373. "value": "customAuthToken"
  374. },
  375. {
  376. "key": "Custom-Header",
  377. "value": "NotSoCustom"
  378. },
  379. {
  380. "key": "Accept",
  381. "value": "application\/json"
  382. },
  383. {
  384. "key": "Content-Type",
  385. "value": "application\/json"
  386. }
  387. ],
  388. "body": {
  389. "mode": "raw",
  390. "raw": "[]"
  391. },
  392. "description": "",
  393. "response": []
  394. }
  395. }
  396. ]
  397. }
  398. ]
  399. }