collection.json 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. {
  2. "variable": [
  3. {
  4. "id": "baseUrl",
  5. "key": "baseUrl",
  6. "type": "string",
  7. "name": "string",
  8. "value": "localhost"
  9. }
  10. ],
  11. "info": {
  12. "name": "GREAT API!",
  13. "_postman_id": "",
  14. "description": "",
  15. "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json",
  16. "version": "3.9.9"
  17. },
  18. "item": [
  19. {
  20. "name": "Group A",
  21. "description": "",
  22. "item": [
  23. {
  24. "name": "Endpoint with body parameters as array.",
  25. "request": {
  26. "url": {
  27. "protocol": "http",
  28. "host": "{{baseUrl}}",
  29. "path": "api/withBodyParametersAsArray",
  30. "query": [],
  31. "raw": "http://{{baseUrl}}/api/withBodyParametersAsArray"
  32. },
  33. "method": "POST",
  34. "header": [
  35. {
  36. "key": "Custom-Header",
  37. "value": "NotSoCustom"
  38. },
  39. {
  40. "key": "Content-Type",
  41. "value": "application/json"
  42. },
  43. {
  44. "key": "Accept",
  45. "value": "application/json"
  46. }
  47. ],
  48. "body": {
  49. "mode": "raw",
  50. "raw": "[{\"first_name\":\"John\",\"last_name\":\"Doe\",\"contacts\":[{\"first_name\":\"Janelle\",\"last_name\":\"Monáe\"}],\"roles\":[\"Admin\"]}]"
  51. },
  52. "description": "",
  53. "auth": {
  54. "type": "noauth"
  55. }
  56. },
  57. "response": []
  58. },
  59. {
  60. "name": "Endpoint with body form data parameters.",
  61. "request": {
  62. "url": {
  63. "protocol": "http",
  64. "host": "{{baseUrl}}",
  65. "path": "api\/withFormDataParams",
  66. "query": [],
  67. "raw": "http:\/\/{{baseUrl}}\/api\/withFormDataParams"
  68. },
  69. "method": "POST",
  70. "header": [
  71. {
  72. "key": "Custom-Header",
  73. "value": "NotSoCustom"
  74. },
  75. {
  76. "key": "Content-Type",
  77. "value": "multipart\/form-data"
  78. },
  79. {
  80. "key": "Accept",
  81. "value": "application\/json"
  82. }
  83. ],
  84. "body": {
  85. "mode": "formdata",
  86. "formdata": [
  87. {
  88. "key": "name",
  89. "value": "cat.jpg",
  90. "type": "text"
  91. },
  92. {
  93. "key": "image",
  94. "src": [],
  95. "type": "file"
  96. }
  97. ]
  98. },
  99. "description": "",
  100. "auth": {
  101. "type": "noauth"
  102. }
  103. },
  104. "response": []
  105. },
  106. {
  107. "name": "Endpoint with body parameters.",
  108. "request": {
  109. "url": {
  110. "protocol": "http",
  111. "host": "{{baseUrl}}",
  112. "path": "api\/withBodyParameters",
  113. "query": [],
  114. "raw": "http:\/\/{{baseUrl}}\/api\/withBodyParameters"
  115. },
  116. "method": "POST",
  117. "header": [
  118. {
  119. "key": "Custom-Header",
  120. "value": "NotSoCustom"
  121. },
  122. {
  123. "key": "Content-Type",
  124. "value": "application\/json"
  125. },
  126. {
  127. "key": "Accept",
  128. "value": "application\/json"
  129. }
  130. ],
  131. "body": {
  132. "mode": "raw",
  133. "raw": "{\"user_id\":9,\"room_id\":\"consequatur\",\"forever\":false,\"another_one\":11613.31890586,\"yet_another_param\":{\"name\":\"consequatur\"},\"even_more_param\":[11613.31890586],\"book\":{\"name\":\"consequatur\",\"author_id\":17,\"pages_count\":17},\"ids\":[17],\"users\":[{\"first_name\":\"John\",\"last_name\":\"Doe\"}]}"
  134. },
  135. "description": "",
  136. "auth": {
  137. "type": "noauth"
  138. }
  139. },
  140. "response": []
  141. },
  142. {
  143. "name": "api\/withQueryParameters",
  144. "request": {
  145. "url": {
  146. "protocol": "http",
  147. "host": "{{baseUrl}}",
  148. "path": "api\/withQueryParameters",
  149. "query": [
  150. {
  151. "key": "location_id",
  152. "value": "consequatur",
  153. "description": "The id of the location.",
  154. "disabled": false
  155. },
  156. {
  157. "key": "user_id",
  158. "value": "me",
  159. "description": "The id of the user.",
  160. "disabled": false
  161. },
  162. {
  163. "key": "page",
  164. "value": "4",
  165. "description": "The page number.",
  166. "disabled": false
  167. },
  168. {
  169. "key": "filters",
  170. "value": "consequatur",
  171. "description": "The filters.",
  172. "disabled": false
  173. },
  174. {
  175. "key": "url_encoded",
  176. "value": "%2B+%5B%5D%26%3D",
  177. "description": "Used for testing that URL parameters will be URL-encoded where needed.",
  178. "disabled": false
  179. }
  180. ],
  181. "raw": "http:\/\/{{baseUrl}}\/api\/withQueryParameters?location_id=consequatur&user_id=me&page=4&filters=consequatur&url_encoded=%2B+%5B%5D%26%3D"
  182. },
  183. "method": "GET",
  184. "header": [
  185. {
  186. "key": "Custom-Header",
  187. "value": "NotSoCustom"
  188. },
  189. {
  190. "key": "Accept",
  191. "value": "application\/json"
  192. }
  193. ],
  194. "body": null,
  195. "description": "",
  196. "auth": {
  197. "type": "noauth"
  198. }
  199. },
  200. "response": [
  201. {
  202. "header": [
  203. {
  204. "key": "content-type",
  205. "value": "text/html; charset=UTF-8"
  206. },
  207. {
  208. "key": "cache-control",
  209. "value": "no-cache, private"
  210. }
  211. ],
  212. "code": 200,
  213. "body": "",
  214. "name": null
  215. }
  216. ]
  217. },
  218. {
  219. "name": "api\/withAuthTag",
  220. "request": {
  221. "url": {
  222. "protocol": "http",
  223. "host": "{{baseUrl}}",
  224. "path": "api\/withAuthTag",
  225. "query": [],
  226. "raw": "http:\/\/{{baseUrl}}\/api\/withAuthTag"
  227. },
  228. "method": "GET",
  229. "header": [
  230. {
  231. "key": "Custom-Header",
  232. "value": "NotSoCustom"
  233. },
  234. {
  235. "key": "Accept",
  236. "value": "application\/json"
  237. }
  238. ],
  239. "body": null,
  240. "description": ""
  241. },
  242. "response": [
  243. {
  244. "header": [
  245. {
  246. "key": "content-type",
  247. "value": "text/html; charset=UTF-8"
  248. },
  249. {
  250. "key": "cache-control",
  251. "value": "no-cache, private"
  252. }
  253. ],
  254. "code": 200,
  255. "body": "",
  256. "name": null
  257. }
  258. ]
  259. }
  260. ]
  261. },
  262. {
  263. "name": "Other\ud83d\ude0e",
  264. "description": "",
  265. "item": [
  266. {
  267. "name": "api\/echoesUrlParameters\/{param}\/{param2}\/{param3?}\/{param4?}",
  268. "request": {
  269. "url": {
  270. "protocol": "http",
  271. "host": "{{baseUrl}}",
  272. "path": "api\/echoesUrlParameters\/:param\/:param2\/:param3\/:param4",
  273. "query": [
  274. {
  275. "key": "something",
  276. "value": "consequatur",
  277. "description": "",
  278. "disabled": false
  279. }
  280. ],
  281. "raw": "http:\/\/{{baseUrl}}\/api\/echoesUrlParameters\/:param\/:param2\/:param3\/:param4?something=consequatur",
  282. "variable": [
  283. {
  284. "id": "param",
  285. "key": "param",
  286. "value": "4",
  287. "description": ""
  288. },
  289. {
  290. "id": "param2",
  291. "key": "param2",
  292. "value": "consequatur",
  293. "description": ""
  294. },
  295. {
  296. "id": "param3",
  297. "key": "param3",
  298. "value": "consequatur",
  299. "description": ""
  300. },
  301. {
  302. "id": "param4",
  303. "key": "param4",
  304. "value": null,
  305. "description": ""
  306. }
  307. ]
  308. },
  309. "method": "GET",
  310. "header": [
  311. {
  312. "key": "Custom-Header",
  313. "value": "NotSoCustom"
  314. },
  315. {
  316. "key": "Accept",
  317. "value": "application\/json"
  318. }
  319. ],
  320. "body": null,
  321. "description": "",
  322. "auth": {
  323. "type": "noauth"
  324. }
  325. },
  326. "response": [
  327. {
  328. "header": [
  329. {
  330. "key": "cache-control",
  331. "value": "no-cache, private"
  332. },
  333. {
  334. "key": "content-type",
  335. "value": "application/json"
  336. }
  337. ],
  338. "code": 200,
  339. "body": "{\"param\":\"4\",\"param2\":\"consequatur\",\"param3\":\"consequatur\",\"param4\":null}",
  340. "name": null
  341. }
  342. ]
  343. }
  344. ]
  345. }
  346. ],
  347. "auth": {
  348. "type": "bearer"
  349. }
  350. }