collection.json 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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. "description": "Name of image."
  90. },
  91. {
  92. "key": "image",
  93. "src": [],
  94. "type": "file"
  95. }
  96. ]
  97. },
  98. "description": "",
  99. "auth": {
  100. "type": "noauth"
  101. }
  102. },
  103. "response": []
  104. },
  105. {
  106. "name": "Endpoint with body parameters.",
  107. "request": {
  108. "url": {
  109. "host": "{{baseUrl}}",
  110. "path": "api/withBodyParameters",
  111. "query": [],
  112. "raw": "{{baseUrl}}/api/withBodyParameters"
  113. },
  114. "method": "POST",
  115. "header": [
  116. {
  117. "key": "Custom-Header",
  118. "value": "NotSoCustom"
  119. },
  120. {
  121. "key": "Content-Type",
  122. "value": "application/json"
  123. },
  124. {
  125. "key": "Accept",
  126. "value": "application/json"
  127. }
  128. ],
  129. "body": {
  130. "mode": "raw",
  131. "raw": "{\"user_id\":9,\"room_id\":\"architecto\",\"forever\":false,\"another_one\":4326.41688,\"yet_another_param\":{\"name\":\"architecto\"},\"even_more_param\":[4326.41688],\"book\":{\"name\":\"architecto\",\"author_id\":16,\"pages_count\":16},\"ids\":[16],\"users\":[{\"first_name\":\"John\",\"last_name\":\"Doe\"}]}"
  132. },
  133. "description": "",
  134. "auth": {
  135. "type": "noauth"
  136. }
  137. },
  138. "response": []
  139. },
  140. {
  141. "name": "GET api/withQueryParameters",
  142. "request": {
  143. "url": {
  144. "host": "{{baseUrl}}",
  145. "path": "api/withQueryParameters",
  146. "query": [
  147. {
  148. "key": "location_id",
  149. "value": "architecto",
  150. "description": "The id of the location.",
  151. "disabled": false
  152. },
  153. {
  154. "key": "user_id",
  155. "value": "me",
  156. "description": "The id of the user.",
  157. "disabled": false
  158. },
  159. {
  160. "key": "page",
  161. "value": "4",
  162. "description": "The page number.",
  163. "disabled": false
  164. },
  165. {
  166. "key": "filters",
  167. "value": "architecto",
  168. "description": "The filters.",
  169. "disabled": false
  170. },
  171. {
  172. "key": "url_encoded",
  173. "value": "%2B+%5B%5D%26%3D",
  174. "description": "Used for testing that URL parameters will be URL-encoded where needed.",
  175. "disabled": false
  176. }
  177. ],
  178. "raw": "{{baseUrl}}/api/withQueryParameters?location_id=architecto&user_id=me&page=4&filters=architecto&url_encoded=%2B+%5B%5D%26%3D"
  179. },
  180. "method": "GET",
  181. "header": [
  182. {
  183. "key": "Custom-Header",
  184. "value": "NotSoCustom"
  185. },
  186. {
  187. "key": "Accept",
  188. "value": "application/json"
  189. }
  190. ],
  191. "body": null,
  192. "description": "",
  193. "auth": {
  194. "type": "noauth"
  195. }
  196. },
  197. "response": [
  198. {
  199. "header": [
  200. {
  201. "key": "content-type",
  202. "value": "text/html; charset=UTF-8"
  203. },
  204. {
  205. "key": "cache-control",
  206. "value": "no-cache, private"
  207. }
  208. ],
  209. "code": 200,
  210. "body": "",
  211. "name": null
  212. }
  213. ]
  214. },
  215. {
  216. "name": "GET api/withAuthTag",
  217. "request": {
  218. "url": {
  219. "host": "{{baseUrl}}",
  220. "path": "api/withAuthTag",
  221. "query": [],
  222. "raw": "{{baseUrl}}/api/withAuthTag"
  223. },
  224. "method": "GET",
  225. "header": [
  226. {
  227. "key": "Custom-Header",
  228. "value": "NotSoCustom"
  229. },
  230. {
  231. "key": "Accept",
  232. "value": "application/json"
  233. }
  234. ],
  235. "body": null,
  236. "description": ""
  237. },
  238. "response": [
  239. {
  240. "header": [
  241. {
  242. "key": "content-type",
  243. "value": "text/html; charset=UTF-8"
  244. },
  245. {
  246. "key": "cache-control",
  247. "value": "no-cache, private"
  248. }
  249. ],
  250. "code": 200,
  251. "body": "",
  252. "name": null
  253. }
  254. ]
  255. }
  256. ]
  257. },
  258. {
  259. "name": "Other\ud83d\ude0e",
  260. "description": "",
  261. "item": [
  262. {
  263. "name": "GET api/echoesUrlParameters/{param}/{param2}/{param3?}/{param4?}",
  264. "request": {
  265. "url": {
  266. "host": "{{baseUrl}}",
  267. "path": "api/echoesUrlParameters/:param/:param2/:param3/:param4",
  268. "query": [
  269. {
  270. "key": "something",
  271. "value": "architecto",
  272. "description": "",
  273. "disabled": false
  274. }
  275. ],
  276. "raw": "{{baseUrl}}/api/echoesUrlParameters/:param/:param2/:param3/:param4?something=architecto",
  277. "variable": [
  278. {
  279. "id": "param",
  280. "key": "param",
  281. "value": "4",
  282. "description": ""
  283. },
  284. {
  285. "id": "param2",
  286. "key": "param2",
  287. "value": "architecto",
  288. "description": ""
  289. },
  290. {
  291. "id": "param3",
  292. "key": "param3",
  293. "value": "architecto",
  294. "description": ""
  295. },
  296. {
  297. "id": "param4",
  298. "key": "param4",
  299. "value": null,
  300. "description": ""
  301. }
  302. ]
  303. },
  304. "method": "GET",
  305. "header": [
  306. {
  307. "key": "Custom-Header",
  308. "value": "NotSoCustom"
  309. },
  310. {
  311. "key": "Accept",
  312. "value": "application/json"
  313. }
  314. ],
  315. "body": null,
  316. "description": "",
  317. "auth": {
  318. "type": "noauth"
  319. }
  320. },
  321. "response": [
  322. {
  323. "header": [
  324. {
  325. "key": "cache-control",
  326. "value": "no-cache, private"
  327. },
  328. {
  329. "key": "content-type",
  330. "value": "application/json"
  331. }
  332. ],
  333. "code": 200,
  334. "body": "{\"param\":\"4\",\"param2\":\"architecto\",\"param3\":\"architecto\",\"param4\":null}",
  335. "name": null
  336. }
  337. ]
  338. }
  339. ]
  340. }
  341. ],
  342. "auth": {
  343. "type": "bearer",
  344. "bearer": [
  345. {
  346. "key": "key",
  347. "type": "string"
  348. }
  349. ]
  350. }
  351. }