forked from rafaelfgx/Architecture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postman.json
1 lines (1 loc) · 3.29 KB
/
postman.json
1
{"info":{"_postman_id":"1d326969-4840-46d2-b9ce-acc11c0a7426","name":"Architecture","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"item":[{"name":"Auths","item":[{"name":"SignIn","event":[{"listen":"test","script":{"exec":["var json = JSON.parse(responseBody);\r","pm.environment.set(\"token\", json.token);"],"type":"text/javascript"}}],"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"login\": \"admin\",\n\t\"password\": \"admin\"\n}"},"url":{"raw":"{{url}}/auths","host":["{{url}}"],"path":["auths"]}},"response":[]}]},{"name":"Users","item":[{"name":"List","request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"GET","header":[],"url":{"raw":"{{url}}/users","host":["{{url}}"],"path":["users"]}},"response":[]},{"name":"Get","request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"GET","header":[],"url":{"raw":"{{url}}/users/1","host":["{{url}}"],"path":["users","1"]}},"response":[]},{"name":"Grid","request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"GET","header":[],"url":{"raw":"{{url}}/users/grid?page.index=1&page.size=10&order.property=Id&order.ascending=true","host":["{{url}}"],"path":["users","grid"],"query":[{"key":"page.index","value":"1"},{"key":"page.size","value":"10"},{"key":"order.property","value":"Id"},{"key":"order.ascending","value":"true"}]}},"response":[]},{"name":"Add","request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"firstName\": \"{{$timestamp}}\",\r\n\t\"lastName\": \"{{$timestamp}}\",\r\n\t\"email\": \"email{{$timestamp}}@mail.com\",\r\n\t\"auth\": {\r\n\t\t\"login\": \"{{$timestamp}}\",\r\n\t\t\"password\": \"{{$timestamp}}\",\r\n\t\t\"roles\": 1\r\n\t}\r\n}"},"url":{"raw":"{{url}}/users","host":["{{url}}"],"path":["users"]}},"response":[]},{"name":"Update","request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"id\": 2,\r\n\t\"firstName\": \"{{$timestamp}}-{{$timestamp}}\",\r\n\t\"lastName\": \"{{$timestamp}}-{{$timestamp}}\",\r\n\t\"email\": \"email{{$timestamp}}@mail.com\"\r\n}"},"url":{"raw":"{{url}}/users/2","host":["{{url}}"],"path":["users","2"]}},"response":[]},{"name":"Inactivate","request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/users/2/inactivate","host":["{{url}}"],"path":["users","2","inactivate"]}},"response":[]},{"name":"Delete","request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"{{url}}/users/2","host":["{{url}}"],"path":["users","2"]}},"response":[]}]}]}