collection.json 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  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. "options": {
  46. "raw": {
  47. "language": "json"
  48. }
  49. }
  50. },
  51. "description": "This will be the long description.\nIt can also be multiple lines long.",
  52. "response": []
  53. }
  54. },
  55. {
  56. "name": "api\/withResponseTag",
  57. "request": {
  58. "url": {
  59. "protocol": "http",
  60. "host": "localhost",
  61. "path": "api\/withResponseTag",
  62. "query": []
  63. },
  64. "method": "GET",
  65. "header": [
  66. {
  67. "key": "Authorization",
  68. "value": "customAuthToken"
  69. },
  70. {
  71. "key": "Custom-Header",
  72. "value": "NotSoCustom"
  73. },
  74. {
  75. "key": "Accept",
  76. "value": "application\/json"
  77. },
  78. {
  79. "key": "Content-Type",
  80. "value": "application\/json"
  81. }
  82. ],
  83. "body": {
  84. "mode": "raw",
  85. "raw": "[]",
  86. "options": {
  87. "raw": {
  88. "language": "json"
  89. }
  90. }
  91. },
  92. "description": "",
  93. "response": []
  94. }
  95. },
  96. {
  97. "name": "Endpoint with body parameters.",
  98. "request": {
  99. "url": {
  100. "protocol": "http",
  101. "host": "localhost",
  102. "path": "api\/withBodyParameters",
  103. "query": []
  104. },
  105. "method": "POST",
  106. "header": [
  107. {
  108. "key": "Authorization",
  109. "value": "customAuthToken"
  110. },
  111. {
  112. "key": "Custom-Header",
  113. "value": "NotSoCustom"
  114. },
  115. {
  116. "key": "Accept",
  117. "value": "application\/json"
  118. },
  119. {
  120. "key": "Content-Type",
  121. "value": "application\/json"
  122. }
  123. ],
  124. "body": {
  125. "mode": "raw",
  126. "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}",
  127. "options": {
  128. "raw": {
  129. "language": "json"
  130. }
  131. }
  132. },
  133. "description": "",
  134. "response": []
  135. }
  136. },
  137. {
  138. "name": "api\/withQueryParameters",
  139. "request": {
  140. "url": {
  141. "protocol": "http",
  142. "host": "localhost",
  143. "path": "api\/withQueryParameters",
  144. "query": [
  145. {
  146. "key": "location_id",
  147. "value": "consequatur",
  148. "description": "The id of the location.",
  149. "disabled": false
  150. },
  151. {
  152. "key": "user_id",
  153. "value": "me",
  154. "description": "The id of the user.",
  155. "disabled": false
  156. },
  157. {
  158. "key": "page",
  159. "value": "4",
  160. "description": "The page number.",
  161. "disabled": false
  162. },
  163. {
  164. "key": "filters",
  165. "value": "consequatur",
  166. "description": "The filters.",
  167. "disabled": false
  168. },
  169. {
  170. "key": "url_encoded",
  171. "value": "%2B+%5B%5D%26%3D",
  172. "description": "Used for testing that URL parameters will be URL-encoded where needed.",
  173. "disabled": false
  174. }
  175. ]
  176. },
  177. "method": "GET",
  178. "header": [
  179. {
  180. "key": "Authorization",
  181. "value": "customAuthToken"
  182. },
  183. {
  184. "key": "Custom-Header",
  185. "value": "NotSoCustom"
  186. },
  187. {
  188. "key": "Accept",
  189. "value": "application\/json"
  190. },
  191. {
  192. "key": "Content-Type",
  193. "value": "application\/json"
  194. }
  195. ],
  196. "body": {
  197. "mode": "raw",
  198. "raw": "[]",
  199. "options": {
  200. "raw": {
  201. "language": "json"
  202. }
  203. }
  204. },
  205. "description": "",
  206. "response": []
  207. }
  208. },
  209. {
  210. "name": "api\/withAuthTag",
  211. "request": {
  212. "url": {
  213. "protocol": "http",
  214. "host": "localhost",
  215. "path": "api\/withAuthTag",
  216. "query": []
  217. },
  218. "method": "GET",
  219. "header": [
  220. {
  221. "key": "Authorization",
  222. "value": "customAuthToken"
  223. },
  224. {
  225. "key": "Custom-Header",
  226. "value": "NotSoCustom"
  227. },
  228. {
  229. "key": "Accept",
  230. "value": "application\/json"
  231. },
  232. {
  233. "key": "Content-Type",
  234. "value": "application\/json"
  235. }
  236. ],
  237. "body": {
  238. "mode": "raw",
  239. "raw": "[]",
  240. "options": {
  241. "raw": {
  242. "language": "json"
  243. }
  244. }
  245. },
  246. "description": "",
  247. "response": []
  248. }
  249. },
  250. {
  251. "name": "api\/withEloquentApiResource",
  252. "request": {
  253. "url": {
  254. "protocol": "http",
  255. "host": "localhost",
  256. "path": "api\/withEloquentApiResource",
  257. "query": []
  258. },
  259. "method": "GET",
  260. "header": [
  261. {
  262. "key": "Authorization",
  263. "value": "customAuthToken"
  264. },
  265. {
  266. "key": "Custom-Header",
  267. "value": "NotSoCustom"
  268. },
  269. {
  270. "key": "Accept",
  271. "value": "application\/json"
  272. },
  273. {
  274. "key": "Content-Type",
  275. "value": "application\/json"
  276. }
  277. ],
  278. "body": {
  279. "mode": "raw",
  280. "raw": "[]",
  281. "options": {
  282. "raw": {
  283. "language": "json"
  284. }
  285. }
  286. },
  287. "description": "",
  288. "response": []
  289. }
  290. },
  291. {
  292. "name": "api\/withMultipleResponseTagsAndStatusCode",
  293. "request": {
  294. "url": {
  295. "protocol": "http",
  296. "host": "localhost",
  297. "path": "api\/withMultipleResponseTagsAndStatusCode",
  298. "query": []
  299. },
  300. "method": "POST",
  301. "header": [
  302. {
  303. "key": "Authorization",
  304. "value": "customAuthToken"
  305. },
  306. {
  307. "key": "Custom-Header",
  308. "value": "NotSoCustom"
  309. },
  310. {
  311. "key": "Accept",
  312. "value": "application\/json"
  313. },
  314. {
  315. "key": "Content-Type",
  316. "value": "application\/json"
  317. }
  318. ],
  319. "body": {
  320. "mode": "raw",
  321. "raw": "[]",
  322. "options": {
  323. "raw": {
  324. "language": "json"
  325. }
  326. }
  327. },
  328. "description": "",
  329. "response": []
  330. }
  331. }
  332. ]
  333. },
  334. {
  335. "name": "Other\ud83d\ude0e",
  336. "description": "",
  337. "item": [
  338. {
  339. "name": "api\/withEloquentApiResourceCollectionClass",
  340. "request": {
  341. "url": {
  342. "protocol": "http",
  343. "host": "localhost",
  344. "path": "api\/withEloquentApiResourceCollectionClass",
  345. "query": []
  346. },
  347. "method": "GET",
  348. "header": [
  349. {
  350. "key": "Authorization",
  351. "value": "customAuthToken"
  352. },
  353. {
  354. "key": "Custom-Header",
  355. "value": "NotSoCustom"
  356. },
  357. {
  358. "key": "Accept",
  359. "value": "application\/json"
  360. },
  361. {
  362. "key": "Content-Type",
  363. "value": "application\/json"
  364. }
  365. ],
  366. "body": {
  367. "mode": "raw",
  368. "raw": "[]",
  369. "options": {
  370. "raw": {
  371. "language": "json"
  372. }
  373. }
  374. },
  375. "description": "",
  376. "response": []
  377. }
  378. },
  379. {
  380. "name": "api\/echoesUrlParameters\/{param}-{param2}\/{param3?}",
  381. "request": {
  382. "url": {
  383. "protocol": "http",
  384. "host": "localhost",
  385. "path": "api\/echoesUrlParameters\/{param}-{param2}\/:param3",
  386. "query": [
  387. {
  388. "key": "something",
  389. "value": "consequatur",
  390. "description": "",
  391. "disabled": false
  392. }
  393. ],
  394. "variable": [
  395. {
  396. "id": "param",
  397. "key": "param",
  398. "value": "4",
  399. "description": ""
  400. },
  401. {
  402. "id": "param2",
  403. "key": "param2",
  404. "value": "consequatur",
  405. "description": ""
  406. }
  407. ]
  408. },
  409. "method": "GET",
  410. "header": [
  411. {
  412. "key": "Authorization",
  413. "value": "customAuthToken"
  414. },
  415. {
  416. "key": "Custom-Header",
  417. "value": "NotSoCustom"
  418. },
  419. {
  420. "key": "Accept",
  421. "value": "application\/json"
  422. },
  423. {
  424. "key": "Content-Type",
  425. "value": "application\/json"
  426. }
  427. ],
  428. "body": {
  429. "mode": "raw",
  430. "raw": "[]",
  431. "options": {
  432. "raw": {
  433. "language": "json"
  434. }
  435. }
  436. },
  437. "description": "",
  438. "response": []
  439. }
  440. }
  441. ]
  442. }
  443. ]
  444. }