{"info":{"_postman_id":"d8360c4e-7982-411d-8904-8fcf977ee461","name":"WOMBAT","description":"<html><head></head><body><p>To each POST request client has to provide API key (set in appsettings.json) in request header named \"ApiKey\". Key provided in header has to be encoded to Base64 format.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"19462677","collectionId":"d8360c4e-7982-411d-8904-8fcf977ee461","publishedId":"2s8ZDR6jzR","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-11T12:48:03.000Z"},"item":[{"name":"api/Users","item":[{"name":"/api/Users/Login","id":"d2e7b77e-79f3-461a-a397-2d6d57d4e84e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiKey","value":"Base64EncodedKey","type":"text"}],"url":"//api/Users/Login","description":"<p>Signs in user based on provided login data. Returns json with JWT valid for 24hrs, user id, username, users mail.</p>\n<p>User has to be assigned to role, and has to have confirmed email.</p>\n","urlObject":{"path":["api","Users","Login"],"host":["/"],"query":[],"variable":[]}},"response":[{"id":"aa23351d-1e0b-4a28-8851-95cc58940a03","name":"Success","originalRequest":{"method":"POST","header":[],"url":"//api/Users/Login"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"d2e7b77e-79f3-461a-a397-2d6d57d4e84e"},{"name":"/api/Users/Register","id":"75b99b6f-c616-4c5b-aa38-01c09f214b3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"ApiKey","value":"Base64EncodedKey","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"mail\": \"in\",\n  \"pass\": \"ex eu\",\n  \"role\": \"elit occaecat\",\n  \"username\": \"eu est fugiat\"\n}","options":{"raw":{"language":"json"}}},"url":"//api/Users/Register","description":"<p>Creates users account based on provided info, sends email confirmation required to log in.</p>\n","urlObject":{"path":["api","Users","Register"],"host":["/"],"query":[],"variable":[]}},"response":[{"id":"ae66317d-b024-40ed-b7a0-d0644b494b89","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"mail\": \"in\",\n  \"pass\": \"ex eu\",\n  \"role\": \"elit occaecat\",\n  \"username\": \"eu est fugiat\"\n}","options":{"raw":{"language":"json"}}},"url":"//api/Users/Register"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"75b99b6f-c616-4c5b-aa38-01c09f214b3e"},{"name":"/api/Users/LogOut","id":"d019b420-1289-4924-ae66-e84c7e512345","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"ApiKey","value":"Base64EncodedKey","type":"text"}],"url":"//api/Users/LogOut","description":"<p>Removes users token (if token exists) from database, and makes it unusable even if token did not expire. This should be followed by deleting token on client side.</p>\n","urlObject":{"path":["api","Users","LogOut"],"host":["/"],"query":[],"variable":[]}},"response":[{"id":"cd075889-c8c8-497d-9b18-6ce3ae8d5739","name":"Success","originalRequest":{"method":"POST","header":[],"url":"//api/Users/LogOut"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"d019b420-1289-4924-ae66-e84c7e512345"},{"name":"/api/Users/ConfirmEmail","id":"c52b6d6a-f4dd-49fd-8935-f41ed6c7607c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"//api/Users/ConfirmEmail?id=dolor in dolore magna&token=dolor in dolore magna","description":"<p>Confirms user account via token provided by email confirmation message.</p>\n","urlObject":{"path":["api","Users","ConfirmEmail"],"host":["/"],"query":[{"key":"id","value":"dolor in dolore magna"},{"key":"token","value":"dolor in dolore magna"}],"variable":[]}},"response":[{"id":"b6b6d829-9b68-4e1c-9616-50921b5ce96e","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"//api/Users/ConfirmEmail?id=dolor in dolore magna&token=dolor in dolore magna","host":["/"],"path":["api","Users","ConfirmEmail"],"query":[{"key":"id","value":"dolor in dolore magna"},{"key":"token","value":"dolor in dolore magna"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"c52b6d6a-f4dd-49fd-8935-f41ed6c7607c"},{"name":"/api/Users/ValidateToken","id":"e9b5c63a-1dbb-4b16-b1a5-037bdbbdd4bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"ApiKey","value":"Base64EncodedKey","type":"text"}],"url":"//api/Users/ValidateToken","description":"<p>Checks if provided token is valid and exists in database.</p>\n","urlObject":{"path":["api","Users","ValidateToken"],"host":["/"],"query":[],"variable":[]}},"response":[{"id":"09f0178a-2256-42b7-8c10-95108331cd52","name":"Success","originalRequest":{"method":"POST","header":[],"url":"//api/Users/ValidateToken"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"e9b5c63a-1dbb-4b16-b1a5-037bdbbdd4bc"},{"name":"/api/Users/SendChangeEmailConfirmation","id":"93684946-c29b-456f-bc07-f8e25401b243","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiKey","value":"Base64EncodedKey","type":"text"}],"url":"//api/Users/SendChangeEmailConfirmation?mail=dolor in dolore magna&newMail=dolor in dolore magna","description":"<p>Sends email change confirmation link (provided in appsettings) to users new mail with user id and change token.</p>\n<p>To confirm email change, please click Here</p>\n<p>Where href in a is: link?id=user.Id&amp;newMail=newMail&amp;token=encodedToken</p>\n","urlObject":{"path":["api","Users","SendChangeEmailConfirmation"],"host":["/"],"query":[{"key":"mail","value":"dolor in dolore magna"},{"key":"newMail","value":"dolor in dolore magna"}],"variable":[]}},"response":[{"id":"03dda15a-65c4-43b7-a6d2-10cbaabe9d47","name":"Success","originalRequest":{"method":"POST","header":[],"url":{"raw":"//api/Users/SendChangeEmailConfirmation?mail=dolor in dolore magna&newMail=dolor in dolore magna","host":["/"],"path":["api","Users","SendChangeEmailConfirmation"],"query":[{"key":"mail","value":"dolor in dolore magna"},{"key":"newMail","value":"dolor in dolore magna"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"93684946-c29b-456f-bc07-f8e25401b243"},{"name":"/api/Users/ChangeEmail","id":"a71a3124-0a7c-4fd3-9fc2-7b7af6fa55ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"//api/Users/ChangeEmail?id=dolor in dolore magna&newMail=dolor in dolore magna&token=dolor in dolore magna","description":"<p>Changes users email to new.</p>\n","urlObject":{"path":["api","Users","ChangeEmail"],"host":["/"],"query":[{"key":"id","value":"dolor in dolore magna"},{"key":"newMail","value":"dolor in dolore magna"},{"key":"token","value":"dolor in dolore magna"}],"variable":[]}},"response":[{"id":"09c4746b-6637-4709-82c6-efe5e0c78d90","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"//api/Users/ChangeEmail?id=dolor in dolore magna&newMail=dolor in dolore magna&token=dolor in dolore magna","host":["/"],"path":["api","Users","ChangeEmail"],"query":[{"key":"id","value":"dolor in dolore magna"},{"key":"newMail","value":"dolor in dolore magna"},{"key":"token","value":"dolor in dolore magna"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"a71a3124-0a7c-4fd3-9fc2-7b7af6fa55ed"},{"name":"/api/Users/SendResetPasswordConfirmation","id":"26596016-99bf-4c14-b0e7-e841ce11e3d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiKey","value":"Base64EncodedKey","type":"text"}],"url":"//api/Users/SendResetPasswordConfirmation?mail=dolor in dolore magna","description":"<p>Sends reset password link (provided in appsettings) to users email account.</p>\n<p>Link format: To reset your password, please click Here</p>\n<p>Where href in a is : link?uid=user.Id&amp;token=encodedToken</p>\n","urlObject":{"path":["api","Users","SendResetPasswordConfirmation"],"host":["/"],"query":[{"key":"mail","value":"dolor in dolore magna"}],"variable":[]}},"response":[{"id":"9c407358-cc21-4c5e-b7e6-da18fd060eba","name":"Success","originalRequest":{"method":"POST","header":[],"url":{"raw":"//api/Users/SendResetPasswordConfirmation?mail=dolor in dolore magna","host":["/"],"path":["api","Users","SendResetPasswordConfirmation"],"query":[{"key":"mail","value":"dolor in dolore magna"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"26596016-99bf-4c14-b0e7-e841ce11e3d3"},{"name":"/api/Users/ResetPassword","id":"3a0ba2b3-c3e9-4a49-9fb3-8f6b8fd46a30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"url":"//api/Users/ResetPassword?token=dolor in dolore magna","description":"<p>Resets users password with provided token, new password should be passed in basic auth with empty username</p>\n<p>(Basic :newPassword)</p>\n","urlObject":{"path":["api","Users","ResetPassword"],"host":["/"],"query":[{"key":"token","value":"dolor in dolore magna"}],"variable":[]}},"response":[{"id":"7f61f7b4-8779-45d8-99d6-926e1b4abc9a","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"//api/Users/ResetPassword?token=dolor in dolore magna","host":["/"],"path":["api","Users","ResetPassword"],"query":[{"key":"token","value":"dolor in dolore magna"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"3a0ba2b3-c3e9-4a49-9fb3-8f6b8fd46a30"}],"id":"e1790a49-37ff-4122-bca4-87a5c98c98a1","_postman_id":"e1790a49-37ff-4122-bca4-87a5c98c98a1","description":""}],"variable":[{"key":"baseUrl","value":"/","type":"string"}]}