{"info":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","description":"<html><head></head><body><p>It's important to mention, that this API is not yet done, there is a lot of missing functionality.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"9956320","collectionId":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","publishedId":"UyrBhvHX","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-04-24T13:54:09.000Z"},"item":[{"name":"auth","item":[{"name":"sign-in","id":"2e2acb30-7111-4b3c-a62d-4143cdb906ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"admin@admin.pl\",\r\n    \"password\": \"admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/auth/sign-in","description":"<p>Acts like regular login route, generates new access token and sets a cookie for refresh token.</p>\n","urlObject":{"path":["auth","sign-in"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"2e2acb30-7111-4b3c-a62d-4143cdb906ed"},{"name":"refresh-token","id":"dd7f9b01-fd78-4f24-bcdf-5b52fbec0e51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"/auth/refresh-token","description":"<p>Refreshes access token by refresh token stored in cookies</p>\n","urlObject":{"path":["auth","refresh-token"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"dd7f9b01-fd78-4f24-bcdf-5b52fbec0e51"},{"name":"sign-up","id":"89094dcf-3143-4d31-9c49-ca64a7e541af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"Express\",\r\n    \"lastName\": \"IsNice\",\r\n    \"email\": \"email@gmail.com\",\r\n    \"password\": \"express123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/auth/sign-up","description":"<p>Registers new user and returns it, call login endpoint to login with freshly created user</p>\n","urlObject":{"path":["auth","sign-up"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"89094dcf-3143-4d31-9c49-ca64a7e541af"}],"id":"cce02f74-804a-4122-a0ab-9befdc43476d","_postman_id":"cce02f74-804a-4122-a0ab-9befdc43476d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}}},{"name":"users","item":[{"name":"categories","item":[{"name":"jobs","item":[{"name":"all jobs","id":"bd26af80-61c2-41a4-856f-0fc2cf54889a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/users/:userId/categories/:categoryId/jobs","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}},"urlObject":{"path":["users",":userId","categories",":categoryId","jobs"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"userId"},{"type":"any","value":"","key":"categoryId"}]}},"response":[],"_postman_id":"bd26af80-61c2-41a4-856f-0fc2cf54889a"},{"name":"get job","id":"2c9ba446-4147-4a37-af2f-a2e7262d9b16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/users/:userId/categories/:categoryId/jobs/:jobId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}},"urlObject":{"path":["users",":userId","categories",":categoryId","jobs",":jobId"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"userId"},{"type":"any","value":"","key":"categoryId"},{"type":"any","value":"","key":"jobId"}]}},"response":[],"_postman_id":"2c9ba446-4147-4a37-af2f-a2e7262d9b16"},{"name":"create job","id":"361a88c9-5822-4320-9cc3-896cc98f48b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"job 1\",\r\n    \"index\": 1,\r\n    \"url\": \"www.google.pl\",\r\n    \"company\": {\r\n        \"name\": \"Jalochex\",\r\n        \"website\": \"www.jalochex.pl\",\r\n        \"size\": 0\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"/users/:userId/categories/:categoryId/jobs","description":"<h4 id=\"company-is-either-string-id-of-existing-company-or-new-company-object\">Company is either <strong>string (id of existing company)</strong> or <strong>new company object.</strong></h4>\n<h4 id=\"by-passing-object-api-tries-to-create-new-company-from-it-and-reference-it-in-newly-created-job\">By passing object, api tries to create new company from it and reference it in newly created job.</h4>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}},"urlObject":{"path":["users",":userId","categories",":categoryId","jobs"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"userId"},{"type":"any","value":"","key":"categoryId"}]}},"response":[],"_postman_id":"361a88c9-5822-4320-9cc3-896cc98f48b8"},{"name":"delete job","id":"bf5360a3-a5d6-473b-bc52-47fc4b3a6f84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/users/:userId/categories/:categoryId/jobs/:jobId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}},"urlObject":{"path":["users",":userId","categories",":categoryId","jobs",":jobId"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"userId"},{"type":"any","value":"","key":"categoryId"},{"type":"any","value":"","key":"jobId"}]}},"response":[],"_postman_id":"bf5360a3-a5d6-473b-bc52-47fc4b3a6f84"}],"id":"3c142684-72d4-4461-86e9-bb1e5ba82405","_postman_id":"3c142684-72d4-4461-86e9-bb1e5ba82405","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}}},{"name":"all categories","id":"8184f0f8-7a9c-4c3b-8ec5-db8fee4ad8a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/users/:userId/categories","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}},"urlObject":{"path":["users",":userId","categories"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"userId"}]}},"response":[],"_postman_id":"8184f0f8-7a9c-4c3b-8ec5-db8fee4ad8a8"},{"name":"create category","id":"5a4390e1-8ec9-40fc-8fcf-e9dfe8ad444d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"hr interview\",\r\n    \"index\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"/users/:userId/categories","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}},"urlObject":{"path":["users",":userId","categories"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"userId"}]}},"response":[],"_postman_id":"5a4390e1-8ec9-40fc-8fcf-e9dfe8ad444d"},{"name":"delete category","id":"189e4177-4325-4617-96ad-22ea27c1a694","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/users/:userId/category/:categoryId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}},"urlObject":{"path":["users",":userId","category",":categoryId"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"userId"},{"type":"any","value":"","key":"categoryId"}]}},"response":[],"_postman_id":"189e4177-4325-4617-96ad-22ea27c1a694"},{"name":"get category","id":"d04fc0a7-3396-4b54-9dd4-fa6e5b2115c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/users/:userId/categories/:categoryId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}},"urlObject":{"path":["users",":userId","categories",":categoryId"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"userId"},{"type":"any","value":"","key":"categoryId"}]}},"response":[],"_postman_id":"d04fc0a7-3396-4b54-9dd4-fa6e5b2115c7"}],"id":"5f4a833b-0a23-4f55-bb8d-43ee9d570789","_postman_id":"5f4a833b-0a23-4f55-bb8d-43ee9d570789","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}}},{"name":"delete user","id":"047df380-7bfe-4dfd-a8a7-68769df1d3ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/users/:userId","description":"<p>Deletes user with given id, admin role is needed to call this endpoint</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}},"urlObject":{"path":["users",":userId"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"userId"}]}},"response":[],"_postman_id":"047df380-7bfe-4dfd-a8a7-68769df1d3ca"},{"name":"get user","id":"ff941169-a0e5-4f1f-9d83-f4b2896d50a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/users/:userId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}},"urlObject":{"path":["users",":userId"],"host":[""],"query":[],"variable":[{"type":"any","value":"","key":"userId"}]}},"response":[],"_postman_id":"ff941169-a0e5-4f1f-9d83-f4b2896d50a2"},{"name":"get users","id":"86519f56-ea64-488a-85a1-20b71557aa1c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/users/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}},"urlObject":{"path":["users",""],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"86519f56-ea64-488a-85a1-20b71557aa1c"}],"id":"9580f91b-90be-4d84-b467-01838cea1bbf","event":[{"listen":"prerequest","script":{"id":"fef24d04-c2e5-4b5b-a35d-072f8b2b324f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b9bc45fe-9ef1-4842-b518-644efdf61e94","type":"text/javascript","exec":[""]}}],"_postman_id":"9580f91b-90be-4d84-b467-01838cea1bbf","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}}},{"name":"company","item":[{"name":"company","id":"b6d5073a-6280-46d2-b310-5ac1599aa816","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/company","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}},"urlObject":{"path":["company"],"host":[""],"query":[{"disabled":true,"description":{"content":"<p>pull specific user companies</p>\n","type":"text/plain"},"key":"userId","value":"6758ce64-b1ab-4a0a-934f-3f4794da0533"}],"variable":[]}},"response":[],"_postman_id":"b6d5073a-6280-46d2-b310-5ac1599aa816"},{"name":"company","id":"14af9001-14f3-44f2-be58-5d720e33e304","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"job tracker corp\",\r\n    \"website\": \"www\",\r\n    \"size\": 0,\r\n    \"userId\": \"6758ce64-b1ab-4a0a-934f-3f4794da0533\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/company","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}},"urlObject":{"path":["company"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"14af9001-14f3-44f2-be58-5d720e33e304"},{"name":"company","id":"f1a0d3a1-4693-4f84-85ba-917b7a121eb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/company/5d6a482a-6b4a-446c-9c3d-c12fbd05646c","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}},"urlObject":{"path":["company","5d6a482a-6b4a-446c-9c3d-c12fbd05646c"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"f1a0d3a1-4693-4f84-85ba-917b7a121eb1"}],"id":"139682a1-f166-4279-bb6e-7404107e6ae4","_postman_id":"139682a1-f166-4279-bb6e-7404107e6ae4","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","id":"9ff482eb-82c1-46e5-a99f-d4164cad7fdc","name":"job-app-tracker","type":"collection"}}},{"name":"health","id":"55292ebc-b7ca-4661-89ff-0f8def2fac85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"/health","urlObject":{"path":["health"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"55292ebc-b7ca-4661-89ff-0f8def2fac85"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"f17092e2-19b7-440d-b1cd-bd5acff6bfc5","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d3b46670-66ca-4dc3-bc87-c259ba80bc97","type":"text/javascript","exec":[""]}}],"variable":[{"key":"userId","value":"","type":"string"},{"key":"categoryId","value":"","type":"string"},{"key":"jobId","value":"","type":"string"},{"key":"url","value":"","type":"string"}]}