collection.json 9.7 KB

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