collection.json 11 KB

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