collection.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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": "Example title.",
  25. "request": {
  26. "url": {
  27. "protocol": "http",
  28. "host": "{{baseUrl}}",
  29. "path": "api\/withDescription",
  30. "query": [],
  31. "raw": "http:\/\/{{baseUrl}}\/api\/withDescription"
  32. },
  33. "method": "GET",
  34. "header": [
  35. {
  36. "key": "Custom-Header",
  37. "value": "NotSoCustom"
  38. },
  39. {
  40. "key": "Accept",
  41. "value": "application\/json"
  42. }
  43. ],
  44. "body": null,
  45. "description": "This will be the long description.\nIt can also be multiple lines long.",
  46. "auth": {
  47. "type": "noauth"
  48. }
  49. },
  50. "response": []
  51. },
  52. {
  53. "name": "Endpoint with body form data parameters.",
  54. "request": {
  55. "url": {
  56. "protocol": "http",
  57. "host": "{{baseUrl}}",
  58. "path": "api\/withFormDataParams",
  59. "query": [],
  60. "raw": "http:\/\/{{baseUrl}}\/api\/withFormDataParams"
  61. },
  62. "method": "POST",
  63. "header": [
  64. {
  65. "key": "Custom-Header",
  66. "value": "NotSoCustom"
  67. },
  68. {
  69. "key": "Content-Type",
  70. "value": "multipart\/form-data"
  71. },
  72. {
  73. "key": "Accept",
  74. "value": "application\/json"
  75. }
  76. ],
  77. "body": {
  78. "mode": "formdata",
  79. "formdata": [
  80. {
  81. "key": "name",
  82. "value": "cat.jpg",
  83. "type": "text"
  84. },
  85. {
  86. "key": "image",
  87. "src": [],
  88. "type": "file"
  89. }
  90. ]
  91. },
  92. "description": "",
  93. "auth": {
  94. "type": "noauth"
  95. }
  96. },
  97. "response": []
  98. },
  99. {
  100. "name": "Endpoint with body parameters.",
  101. "request": {
  102. "url": {
  103. "protocol": "http",
  104. "host": "{{baseUrl}}",
  105. "path": "api\/withBodyParameters",
  106. "query": [],
  107. "raw": "http:\/\/{{baseUrl}}\/api\/withBodyParameters"
  108. },
  109. "method": "POST",
  110. "header": [
  111. {
  112. "key": "Custom-Header",
  113. "value": "NotSoCustom"
  114. },
  115. {
  116. "key": "Content-Type",
  117. "value": "application\/json"
  118. },
  119. {
  120. "key": "Accept",
  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 11613.31890586\n ],\n \"book\": {\n \"name\": \"consequatur\",\n \"author_id\": 17,\n \"pages_count\": 17\n },\n \"ids\": [\n 17,\n 17\n ],\n \"users\": [\n {\n \"first_name\": \"John\",\n \"last_name\": \"Doe\"\n },\n {\n \"first_name\": \"John\",\n \"last_name\": \"Doe\"\n }\n ]\n}"
  127. },
  128. "description": "",
  129. "auth": {
  130. "type": "noauth"
  131. }
  132. },
  133. "response": []
  134. },
  135. {
  136. "name": "api\/withQueryParameters",
  137. "request": {
  138. "url": {
  139. "protocol": "http",
  140. "host": "{{baseUrl}}",
  141. "path": "api\/withQueryParameters",
  142. "query": [
  143. {
  144. "key": "location_id",
  145. "value": "consequatur",
  146. "description": "The id of the location.",
  147. "disabled": false
  148. },
  149. {
  150. "key": "user_id",
  151. "value": "me",
  152. "description": "The id of the user.",
  153. "disabled": false
  154. },
  155. {
  156. "key": "page",
  157. "value": "4",
  158. "description": "The page number.",
  159. "disabled": false
  160. },
  161. {
  162. "key": "filters",
  163. "value": "consequatur",
  164. "description": "The filters.",
  165. "disabled": false
  166. },
  167. {
  168. "key": "url_encoded",
  169. "value": "%2B+%5B%5D%26%3D",
  170. "description": "Used for testing that URL parameters will be URL-encoded where needed.",
  171. "disabled": false
  172. }
  173. ],
  174. "raw": "http:\/\/{{baseUrl}}\/api\/withQueryParameters?location_id=consequatur&user_id=me&page=4&filters=consequatur&url_encoded=%2B+%5B%5D%26%3D"
  175. },
  176. "method": "GET",
  177. "header": [
  178. {
  179. "key": "Custom-Header",
  180. "value": "NotSoCustom"
  181. },
  182. {
  183. "key": "Accept",
  184. "value": "application\/json"
  185. }
  186. ],
  187. "body": null,
  188. "description": "",
  189. "auth": {
  190. "type": "noauth"
  191. }
  192. },
  193. "response": []
  194. },
  195. {
  196. "name": "api\/withAuthTag",
  197. "request": {
  198. "url": {
  199. "protocol": "http",
  200. "host": "{{baseUrl}}",
  201. "path": "api\/withAuthTag",
  202. "query": [],
  203. "raw": "http:\/\/{{baseUrl}}\/api\/withAuthTag"
  204. },
  205. "method": "GET",
  206. "header": [
  207. {
  208. "key": "Custom-Header",
  209. "value": "NotSoCustom"
  210. },
  211. {
  212. "key": "Accept",
  213. "value": "application\/json"
  214. }
  215. ],
  216. "body": null,
  217. "description": "",
  218. "auth": null
  219. },
  220. "response": []
  221. }
  222. ]
  223. },
  224. {
  225. "name": "Other\ud83d\ude0e",
  226. "description": "",
  227. "item": [
  228. {
  229. "name": "api\/echoesUrlParameters\/{param}-{param2}\/{param3?}",
  230. "request": {
  231. "url": {
  232. "protocol": "http",
  233. "host": "{{baseUrl}}",
  234. "path": "api\/echoesUrlParameters\/:param-:param2\/:param3",
  235. "query": [
  236. {
  237. "key": "something",
  238. "value": "consequatur",
  239. "description": "",
  240. "disabled": false
  241. }
  242. ],
  243. "raw": "http:\/\/{{baseUrl}}\/api\/echoesUrlParameters\/:param-:param2\/:param3?something=consequatur",
  244. "variable": [
  245. {
  246. "id": "param",
  247. "key": "param",
  248. "value": "4",
  249. "description": ""
  250. },
  251. {
  252. "id": "param2",
  253. "key": "param2",
  254. "value": "consequatur",
  255. "description": ""
  256. }
  257. ]
  258. },
  259. "method": "GET",
  260. "header": [
  261. {
  262. "key": "Custom-Header",
  263. "value": "NotSoCustom"
  264. },
  265. {
  266. "key": "Accept",
  267. "value": "application\/json"
  268. }
  269. ],
  270. "body": null,
  271. "description": "",
  272. "auth": {
  273. "type": "noauth"
  274. }
  275. },
  276. "response": []
  277. }
  278. ]
  279. }
  280. ],
  281. "auth": {
  282. "type": "noauth"
  283. }
  284. }