{"info":{"_postman_id":"7009f65c-529c-428d-a4a1-bfe0431461f2","name":"authServer","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"14220165","collectionId":"7009f65c-529c-428d-a4a1-bfe0431461f2","publishedId":"TzeZERnx","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-06-20T17:33:03.000Z"},"item":[{"name":"users","item":[{"name":"Register","event":[{"listen":"test","script":{"id":"c6b3d14b-8cea-4de6-ada9-621102b3071a","exec":[""],"type":"text/javascript"}}],"id":"ff3b8000-aaf4-4383-848d-970ca32946a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"username\",\n  \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/users/register","urlObject":{"path":["register"],"host":["http://localhost:5000/users"],"query":[],"variable":[]}},"response":[],"_postman_id":"ff3b8000-aaf4-4383-848d-970ca32946a9"},{"name":"Login","event":[{"listen":"prerequest","script":{"id":"189c9ced-a4f8-4375-81a9-9c33ec043ae4","exec":[""],"type":"text/javascript"}}],"id":"9813c52e-efb9-42dd-88ce-014633ed2b2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"username\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/users/login","urlObject":{"path":["login"],"host":["http://localhost:5000/users"],"query":[],"variable":[]}},"response":[],"_postman_id":"9813c52e-efb9-42dd-88ce-014633ed2b2f"},{"name":"JWT","event":[{"listen":"test","script":{"id":"83a373a5-b318-4239-8313-e3b2cd9dbecd","exec":["pm.sendRequest(\"https://api.mert.nrw/authServer/users/jwt\", function (err, response) {\r","    console.log(response.text());\r","});"],"type":"text/javascript"}}],"id":"34e04bdb-61d4-4a9b-8783-a8d6154d0f3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"token"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/users/jwt","description":"<p>Checks if the token is valid and return then the content of the token.</p>\n","urlObject":{"path":["jwt"],"host":["http://localhost:5000/users"],"query":[],"variable":[]}},"response":[],"_postman_id":"34e04bdb-61d4-4a9b-8783-a8d6154d0f3d"},{"name":"Change Password","id":"af08db8d-e02d-4581-aaf5-0fbaa68bf53a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"token"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"oldPassword\": \"password\",\n    \"newPassword\": \"test\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/users/changePassword","urlObject":{"path":["changePassword"],"host":["http://localhost:5000/users"],"query":[],"variable":[]}},"response":[],"_postman_id":"af08db8d-e02d-4581-aaf5-0fbaa68bf53a"},{"name":"Change Username","id":"b4263d20-4da6-4829-81be-92b2cee62c33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"token"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"newUsername\": \"newUsername\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/users/changeUsername","urlObject":{"protocol":"http","port":"5000","path":["users","changeUsername"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b4263d20-4da6-4829-81be-92b2cee62c33"},{"name":"Get Users","id":"34090392-3ab7-4b1b-a74a-3e47edafa43b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"token"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/users/getUsers","urlObject":{"path":["getUsers"],"host":["http://localhost:5000/users"],"query":[],"variable":[]}},"response":[],"_postman_id":"34090392-3ab7-4b1b-a74a-3e47edafa43b"},{"name":"Delete User","id":"b2b6f5cb-b9eb-4a31-8098-28ab0aacf0a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"token"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/users/deleteUser/id","urlObject":{"path":["deleteUser","id"],"host":["http://localhost:5000/users"],"query":[],"variable":[]}},"response":[],"_postman_id":"b2b6f5cb-b9eb-4a31-8098-28ab0aacf0a9"}],"id":"775088f2-80ea-4bc9-ba77-268854728462","_postman_id":"775088f2-80ea-4bc9-ba77-268854728462","description":""},{"name":"Permission","item":[{"name":"Has Permission","id":"b703c7ed-e3d4-447c-9610-b75b0a88ad33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"token"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"id\",\n    \"permission\": \"adminsettings.?\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/permission/hasPermission","urlObject":{"path":["hasPermission"],"host":["http://localhost:5000/permission"],"query":[],"variable":[]}},"response":[],"_postman_id":"b703c7ed-e3d4-447c-9610-b75b0a88ad33"},{"name":"Get Permission","id":"05b2532d-a947-4f57-b90e-3895ede0fe71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"token"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/permission/id","urlObject":{"path":["id"],"host":["http://localhost:5000/permission"],"query":[],"variable":[]}},"response":[],"_postman_id":"05b2532d-a947-4f57-b90e-3895ede0fe71"},{"name":"Remove Permission","id":"eb8364fc-2873-460b-9b01-a089cfbdce4d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"token"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"id\",\n    \"permission\": \"permission\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/permission/removePermission","urlObject":{"path":["removePermission"],"host":["http://localhost:5000/permission"],"query":[],"variable":[]}},"response":[],"_postman_id":"eb8364fc-2873-460b-9b01-a089cfbdce4d"},{"name":"Add Permission","id":"6ac5fc4c-1196-4664-a943-31d9210038a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"token"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"id\",\n    \"permission\": \"*\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/permission/addPermission","urlObject":{"path":["addPermission"],"host":["http://localhost:5000/permission"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ac5fc4c-1196-4664-a943-31d9210038a4"}],"id":"a770c4dd-3dd7-4e9e-bccc-9dadb06be9ae","_postman_id":"a770c4dd-3dd7-4e9e-bccc-9dadb06be9ae","description":""}],"event":[{"listen":"prerequest","script":{"id":"b99931e6-c3a5-4549-93fa-2715778eb484","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ebf82c0c-f65e-4e33-981f-c5cd5a9f846c","type":"text/javascript","exec":[""]}}],"variable":[{"key":"host","value":"http://localhost:5000/"},{"key":"name","value":"username"},{"key":"password","value":"password"},{"key":"token","value":"token"},{"key":"id","value":"id"}]}