forked from rafaelfgx/Architecture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostman.json
1 lines (1 loc) · 3.5 KB
/
postman.json
1
{"info":{"_postman_id":"d25930f1-308c-4b98-903d-f13732818f1b","name":"Architecture","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"item":[{"name":"Auths","item":[{"name":"SignInAsync","event":[{"listen":"test","script":{"id":"c53e9fab-fdb4-42af-88d0-42d017ca828f","exec":["var json = JSON.parse(responseBody);\r","pm.globals.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":[]}],"protocolProfileBehavior":{}},{"name":"Users","item":[{"name":"ListAsync","request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"GET","header":[],"url":{"raw":"{{url}}/users","host":["{{url}}"],"path":["users"]}},"response":[]},{"name":"SelectAsync","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":"ListAsync","request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{token}}","type":"string"}]},"method":"GET","header":[],"url":{"raw":"https://localhost:8090/Users/List?Page.Index=1&Page.Size=10&Order.Property=Id&Order.Ascending=true","protocol":"https","host":["localhost"],"port":"8090","path":["Users","List"],"query":[{"key":"Page.Index","value":"1"},{"key":"Page.Size","value":"10"},{"key":"Order.Property","value":"Id"},{"key":"Order.Ascending","value":"true"}]}},"response":[]},{"name":"AddAsync","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\"forename\": \"Forename {{$timestamp}}\",\r\n\t\"surname\": \"Surname {{$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":"UpdateAsync","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\"forename\": \"Forename {{$timestamp}}\",\r\n\t\"surname\": \"Surname {{$timestamp}}\",\r\n\t\"email\": \"email{{$timestamp}}@mail.com\"\r\n}"},"url":{"raw":"{{url}}/users/2","host":["{{url}}"],"path":["users","2"]}},"response":[]},{"name":"InactivateAsync","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":"DeleteAsync","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":[]}],"protocolProfileBehavior":{}}],"protocolProfileBehavior":{}}