Advertisement
Guest User

Untitled

a guest
May 17th, 2018
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.95 KB | None | 0 0
  1. {
  2. "info": {
  3. "_postman_id": "bcc3daf3-8c74-40aa-9471-859fb33df027",
  4. "name": "Express-API",
  5. "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  6. },
  7. "item": [
  8. {
  9. "name": "Markers",
  10. "request": {
  11. "method": "GET",
  12. "header": [
  13. {
  14. "key": "Content-Type",
  15. "value": "application/json"
  16. },
  17. {
  18. "key": "Authorization",
  19. "value": "{{API_TOKEN}}"
  20. }
  21. ],
  22. "body": {
  23. "mode": "raw",
  24. "raw": "{\n\"email\": \"tester@tester.pl\",\n\"firstName\": \"Pawet\",\n\"lastName\": \"Ssdffa\",\n\"password\": \"1tfdt5sdf6\"\n}"
  25. },
  26. "url": {
  27. "raw": "{{HOST}}/users",
  28. "host": [
  29. "{{HOST}}"
  30. ],
  31. "path": [
  32. "users"
  33. ]
  34. }
  35. },
  36. "response": []
  37. },
  38. {
  39. "name": "Users",
  40. "request": {
  41. "method": "GET",
  42. "header": [
  43. {
  44. "key": "Content-Type",
  45. "value": "application/json"
  46. },
  47. {
  48. "key": "Authorization",
  49. "value": "{{API_TOKEN}}"
  50. }
  51. ],
  52. "body": {
  53. "mode": "raw",
  54. "raw": "{\n\"email\": \"tester@tester.pl\",\n\"firstName\": \"Pawet\",\n\"lastName\": \"Ssdffa\",\n\"password\": \"1tfdt5sdf6\"\n}"
  55. },
  56. "url": {
  57. "raw": "{{HOST}}/users",
  58. "host": [
  59. "{{HOST}}"
  60. ],
  61. "path": [
  62. "users"
  63. ]
  64. }
  65. },
  66. "response": []
  67. },
  68. {
  69. "name": "Users With Search",
  70. "request": {
  71. "method": "GET",
  72. "header": [
  73. {
  74. "key": "Content-Type",
  75. "value": "application/json"
  76. },
  77. {
  78. "key": "Authorization",
  79. "value": "{{API_TOKEN}}"
  80. }
  81. ],
  82. "body": {
  83. "mode": "raw",
  84. "raw": "{\n\"email\": \"tester@tester.pl\",\n\"firstName\": \"Pawet\",\n\"lastName\": \"Ssdffa\",\n\"password\": \"1tfdt5sdf6\"\n}"
  85. },
  86. "url": {
  87. "raw": "{{HOST}}/users?search[0][key]=userName&search[0][term]=test",
  88. "host": [
  89. "{{HOST}}"
  90. ],
  91. "path": [
  92. "users"
  93. ],
  94. "query": [
  95. {
  96. "key": "search[0][key]",
  97. "value": "userName"
  98. },
  99. {
  100. "key": "search[0][term]",
  101. "value": "test"
  102. }
  103. ]
  104. }
  105. },
  106. "response": []
  107. },
  108. {
  109. "name": "Users Paginated",
  110. "request": {
  111. "method": "GET",
  112. "header": [
  113. {
  114. "key": "Content-Type",
  115. "value": "application/json"
  116. },
  117. {
  118. "key": "Authorization",
  119. "value": "{{API_TOKEN}}"
  120. }
  121. ],
  122. "body": {
  123. "mode": "raw",
  124. "raw": "{\n\"email\": \"tester@tester.pl\",\n\"firstName\": \"Pawet\",\n\"lastName\": \"Ssdffa\",\n\"password\": \"1tfdt5sdf6\"\n}"
  125. },
  126. "url": {
  127. "raw": "{{HOST}}/users?limit=1&skip=1",
  128. "host": [
  129. "{{HOST}}"
  130. ],
  131. "path": [
  132. "users"
  133. ],
  134. "query": [
  135. {
  136. "key": "limit",
  137. "value": "1"
  138. },
  139. {
  140. "key": "skip",
  141. "value": "1"
  142. }
  143. ]
  144. }
  145. },
  146. "response": []
  147. },
  148. {
  149. "name": "User My Profile",
  150. "request": {
  151. "method": "GET",
  152. "header": [
  153. {
  154. "key": "Content-Type",
  155. "value": "application/json"
  156. },
  157. {
  158. "key": "Authorization",
  159. "value": "{{API_TOKEN}}"
  160. }
  161. ],
  162. "body": {
  163. "mode": "raw",
  164. "raw": "{\n\"email\": \"tester@tester.pl\",\n\"firstName\": \"Pawet\",\n\"lastName\": \"Ssdffa\",\n\"password\": \"1tfdt5sdf6\"\n}"
  165. },
  166. "url": {
  167. "raw": "{{HOST}}/users/me",
  168. "host": [
  169. "{{HOST}}"
  170. ],
  171. "path": [
  172. "users",
  173. "me"
  174. ]
  175. }
  176. },
  177. "response": []
  178. },
  179. {
  180. "name": "User One",
  181. "request": {
  182. "method": "GET",
  183. "header": [
  184. {
  185. "key": "Content-Type",
  186. "value": "application/json"
  187. },
  188. {
  189. "key": "Authorization",
  190. "value": "{{API_TOKEN}}"
  191. }
  192. ],
  193. "body": {
  194. "mode": "raw",
  195. "raw": "{\n\"email\": \"tester@tester.pl\",\n\"firstName\": \"Pawet\",\n\"lastName\": \"Ssdffa\",\n\"password\": \"1tfdt5sdf6\"\n}"
  196. },
  197. "url": {
  198. "raw": "{{HOST}}/users/1",
  199. "host": [
  200. "{{HOST}}"
  201. ],
  202. "path": [
  203. "users",
  204. "1"
  205. ]
  206. }
  207. },
  208. "response": []
  209. },
  210. {
  211. "name": "Login",
  212. "request": {
  213. "method": "POST",
  214. "header": [
  215. {
  216. "key": "Content-Type",
  217. "value": "application/json"
  218. }
  219. ],
  220. "body": {
  221. "mode": "raw",
  222. "raw": "{\n\"user\": \"admin@admin.pl\",\n\"password\": \"123456\"\n}\n"
  223. },
  224. "url": {
  225. "raw": "{{HOST}}/login",
  226. "host": [
  227. "{{HOST}}"
  228. ],
  229. "path": [
  230. "login"
  231. ]
  232. }
  233. },
  234. "response": []
  235. },
  236. {
  237. "name": "Register",
  238. "request": {
  239. "method": "POST",
  240. "header": [
  241. {
  242. "key": "Content-Type",
  243. "value": "application/json"
  244. }
  245. ],
  246. "body": {
  247. "mode": "raw",
  248. "raw": "{\n\"email\": \"admin@admin.pl\",\n\"userName\": \"admin\", \n\"firstName\": \"Jacek2\",\n\"lastName\": \"Administrator2\",\n\"password\": \"123456\",\n\"passwordRetyped\": \"123456\"\n\n}"
  249. },
  250. "url": {
  251. "raw": "{{HOST}}/register",
  252. "host": [
  253. "{{HOST}}"
  254. ],
  255. "path": [
  256. "register"
  257. ]
  258. }
  259. },
  260. "response": []
  261. },
  262. {
  263. "name": "Users",
  264. "request": {
  265. "method": "POST",
  266. "header": [
  267. {
  268. "key": "Content-Type",
  269. "value": "application/json"
  270. },
  271. {
  272. "key": "Authorization",
  273. "value": "{{API_TOKEN}}"
  274. }
  275. ],
  276. "body": {
  277. "mode": "raw",
  278. "raw": "{\n\"email\": \"tester@tester.pl\",\n\"userName\": \"test\", \n\"firstName\": \"Pawet\",\n\"lastName\": \"Tester\",\n\"password\": \"123456\",\n\"passwordRetyped\": \"123456\"\n\n}"
  279. },
  280. "url": {
  281. "raw": "{{HOST}}/users",
  282. "host": [
  283. "{{HOST}}"
  284. ],
  285. "path": [
  286. "users"
  287. ]
  288. }
  289. },
  290. "response": []
  291. },
  292. {
  293. "name": "Users",
  294. "request": {
  295. "method": "PUT",
  296. "header": [
  297. {
  298. "key": "Content-Type",
  299. "value": "application/json"
  300. },
  301. {
  302. "key": "Authorization",
  303. "value": "{{API_TOKEN}}"
  304. }
  305. ],
  306. "body": {
  307. "mode": "raw",
  308. "raw": "{\n\"email\": \"admin@tester.pl\",\n\"userName\": \"changed-user-name\",\n\"firstName\": \"dsfhgdfh\",\n\"lastName\": \"12345\",\n\"password\": \"1tfdt5sdf6\"\n}"
  309. },
  310. "url": {
  311. "raw": "{{HOST}}/users/3",
  312. "host": [
  313. "{{HOST}}"
  314. ],
  315. "path": [
  316. "users",
  317. "3"
  318. ]
  319. }
  320. },
  321. "response": []
  322. },
  323. {
  324. "name": "User",
  325. "request": {
  326. "method": "DELETE",
  327. "header": [
  328. {
  329. "key": "Content-Type",
  330. "value": "application/json"
  331. },
  332. {
  333. "key": "Authorization",
  334. "value": "{{API_TOKEN}}"
  335. }
  336. ],
  337. "body": {
  338. "mode": "raw",
  339. "raw": ""
  340. },
  341. "url": {
  342. "raw": "{{HOST}}/users/3",
  343. "host": [
  344. "{{HOST}}"
  345. ],
  346. "path": [
  347. "users",
  348. "3"
  349. ]
  350. }
  351. },
  352. "response": []
  353. }
  354. ]
  355. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement