{"info":{"_postman_id":"221af068-fe8f-43d5-abbb-df01bf7bf1fa","name":"DumpAPI","description":"<html><head></head><body><p>DumpAPI is a Flask-Restful API that contains data of departments and their employees. It utilizes the <code>flask_restful</code> library for easy and efficient API development. The API incorporates token generation using JWT (JSON Web Tokens) for secure authentication and authorization.</p>\n<h2 id=\"features\">Features</h2>\n<ul>\n<li>Data of departments and their employees</li>\n<li>Token generation with JWT for secure access</li>\n<li>Hashed password storage for enhanced security</li>\n<li>Cloud Database: Yugabyte (Free PostgreSQL DB service)</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"28292111","collectionId":"221af068-fe8f-43d5-abbb-df01bf7bf1fa","publishedId":"2s93zCYLNW","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-07-02T16:19:56.000Z"},"item":[{"name":"Getting Started","item":[{"name":"Home URL","id":"f375f67d-8f97-4c1d-a8e7-f4f535093cb3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://dumpapi-flask-api.onrender.com/","description":"<p><strong>Note</strong> : Please start by running this URL first, and then proceed to other endpoints. The server automatically shuts down after a period of inactivity.</p>\n","urlObject":{"protocol":"https","path":[""],"host":["dumpapi-flask-api","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"04dd28df-36d4-450f-bd2c-2b6638cf6ec2","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"https://dumpapi-flask-api.onrender.com/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 02 Jul 2023 13:38:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"7e0749c639090842-IAD"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-render-origin-server","value":"gunicorn"},{"key":"Set-Cookie","value":"__cf_bm=kDAJdKzyxakC52Z.DZxPNWqgHqu6dCxhATuQsml_A6c-1688305096-0-AeNi7Ik2Kl0t15bNVUiBiFwqE9dROwkraBBoe5Tja6SaoO3ugaRdsSeB4BxGS6vm7agTpY03bTXo2SNUyfkH3DY=; path=/; expires=Sun, 02-Jul-23 14:08:16 GMT; domain=.onrender.com; HttpOnly; Secure; SameSite=None"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Hello World\"\n}"}],"_postman_id":"f375f67d-8f97-4c1d-a8e7-f4f535093cb3"},{"name":"Test","id":"55378295-3ca0-47af-9e99-ebfa86663ad7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://dumpapi-flask-api.onrender.com/test","description":"<h5 id=\"testing-the-api-to-see-if-the-server-is-giving-response-correctfully\">Testing the API To see if the server is giving response correctfully.</h5>\n","urlObject":{"protocol":"https","path":["test"],"host":["dumpapi-flask-api","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"887d33e7-d5ef-4541-9c48-a026a6f9d317","name":"Test","originalRequest":{"method":"GET","header":[],"url":"https://dumpapi-flask-api.onrender.com/test"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 02 Jul 2023 13:53:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"7e0760ba7ea0204e-IAD"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-render-origin-server","value":"gunicorn"},{"key":"Set-Cookie","value":"__cf_bm=IAqcy0bi_dsgPeCYe7FobhZzUHUsy6xmZsy7rAEvToo-1688306037-0-AdoDk0WMfFvL1MTz438il/3CMS6rH0DWDI6ESwPgZz0TMICEzkhy9rSVONUtY06Pp0RY4AvKvhoPcXFevwBAjBg=; path=/; expires=Sun, 02-Jul-23 14:23:57 GMT; domain=.onrender.com; HttpOnly; Secure; SameSite=None"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"Result\": \"The API is Working Correctfully\"\n}"}],"_postman_id":"55378295-3ca0-47af-9e99-ebfa86663ad7"}],"id":"fecd43ba-fee4-4c22-901a-105000c94ed6","description":"<p>Start integrating the DumpAPI into your project to enhance its functionality. By incorporating the DumpAPI as a details provider, you gain access to comprehensive information. It is open and available to meet all your needs.</p>\n","_postman_id":"fecd43ba-fee4-4c22-901a-105000c94ed6"},{"name":"Login and Registration","item":[{"name":"Register Your Self","id":"e3505e35-1f52-4a39-a056-b7b4d3c6e446","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\": \"Example1\",\r\n    \"lastname\": \"Examplename\",\r\n    \"address\": \"Mumbai\",\r\n    \"age\": 10,\r\n    \"salary\": 10000,\r\n    \"username\": \"example\",\r\n    \"password\": \"example\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dumpapi-flask-api.onrender.com/auth/register","description":"<p>Register yourself to generate the access token, enabling you to include the token in the header for each request.</p>\n<p><strong>Parameters:</strong> When making a request, the following fields are required in JSON format:</p>\n<ul>\n<li>First Name</li>\n<li>Last Name</li>\n<li>Address</li>\n<li>Age</li>\n<li>Salary</li>\n<li>Username</li>\n<li>Password</li>\n</ul>\n<p>Upon registration, you will be added as an employee. Please note that the API will randomly assign you to an available department ID. The database will automatically generate a unique ID for you.</p>\n","urlObject":{"protocol":"https","path":["auth","register"],"host":["dumpapi-flask-api","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"31e92539-d603-476e-95e1-498c44f42cba","name":"New Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstname\": \"Example1\",\r\n    \"lastname\": \"Examplename\",\r\n    \"address\":\"Mumbai\",\r\n    \"age\":10,\r\n    \"salary\":10000,\r\n    \"username\":\"example\",\r\n    \"password\":\"example\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dumpapi-flask-api.onrender.com/auth/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 02 Jul 2023 13:59:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"7e076834ee3b28c8-IAD"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-render-origin-server","value":"gunicorn"},{"key":"Set-Cookie","value":"__cf_bm=gSuh3yyg4BV2yKB6uZnlMHqBvqlDrQMUP2Ri8r6M1EU-1688306348-0-AcH8kZvhMzxBGorrcx7FeiKs8psGV8GHeA1hYXmaHeNnWVCbo3JBqqxkK+FnzkkVHy47hWzSXL3X3qMnQNwZIdA=; path=/; expires=Sun, 02-Jul-23 14:29:08 GMT; domain=.onrender.com; HttpOnly; Secure; SameSite=None"},{"key":"Server","value":"cloudflare"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Register Successfully\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wbGUiLCJwYXNzd29yZCI6ImV4YW1wbGUifQ.PImZaSlNJ5Mn5mvIoZJXcR3E3nA9hBCXpQUhRExppN0\"\n}"}],"_postman_id":"e3505e35-1f52-4a39-a056-b7b4d3c6e446"},{"name":"Login","id":"e71a1835-ca9d-4de4-a416-71504a7ad3be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://dumpapi-flask-api.onrender.com/auth/login?username=example&password=example","description":"<p>If you have forgotten the token, you can still access it by logging in using your username and password.</p>\n","urlObject":{"protocol":"https","path":["auth","login"],"host":["dumpapi-flask-api","onrender","com"],"query":[{"description":{"content":"<p>Your Username is required to login to generate the access token</p>\n","type":"text/plain"},"key":"username","value":"example"},{"key":"password","value":"example"},{"disabled":true,"description":{"content":"<p>Your Password is required to login to generate the access token.</p>\n","type":"text/plain"},"key":null,"value":null}],"variable":[]}},"response":[{"id":"a07d3faa-8e26-4eff-a56f-bfd7f2d7f5dd","name":"Login","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://dumpapi-flask-api.onrender.com/auth/login?username=example&password=example","protocol":"https","host":["dumpapi-flask-api","onrender","com"],"path":["auth","login"],"query":[{"key":"username","value":"example","description":"Your Username is required to login to generate the access token"},{"key":"password","value":"example"},{"key":null,"value":null,"description":"Your Password is required to login to generate the access token.","type":"text","disabled":true}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 02 Jul 2023 14:59:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"7e07c1673fb30aad-IAD"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-render-origin-server","value":"gunicorn"},{"key":"Set-Cookie","value":"__cf_bm=SFvrnvnDdz0E.1a.QsR3W2RJos.r7vhzfx.spGnLIqc-1688309997-0-AeJx4C3tLh3Au8McKzjfJNWnQDZsRYU/HGJQtgpk3e2WsuV1R45VuOEXpQkQ5Q5LvHdc+Y7Q/qG4gMA7VHHJKh4=; path=/; expires=Sun, 02-Jul-23 15:29:57 GMT; domain=.onrender.com; HttpOnly; Secure; SameSite=None"},{"key":"Server","value":"cloudflare"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login Success\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wbGUiLCJwYXNzd29yZCI6ImV4YW1wbGUifQ.PImZaSlNJ5Mn5mvIoZJXcR3E3nA9hBCXpQUhRExppN0\"\n}"}],"_postman_id":"e71a1835-ca9d-4de4-a416-71504a7ad3be"},{"name":"ME (Get Yourself)","id":"0435755c-a203-4828-982f-0c5d3ec04653","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wbGUiLCJwYXNzd29yZCI6ImV4YW1wbGUifQ.PImZaSlNJ5Mn5mvIoZJXcR3E3nA9hBCXpQUhRExppN0","description":"<p>Provide the token to retrieve your details.</p>\n","type":"text"}],"url":"https://dumpapi-flask-api.onrender.com/auth/me","description":"<p>If you have the token but don't know your username, you can include the token in the request header to retrieve your details.</p>\n<p><code>Token</code> = <em>Your access Token</em></p>\n","urlObject":{"protocol":"https","path":["auth","me"],"host":["dumpapi-flask-api","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"a0a6bf9f-877d-4bd6-83ad-bfc206ba5d88","name":"ME (Get Yourself)","originalRequest":{"method":"GET","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wbGUiLCJwYXNzd29yZCI6ImV4YW1wbGUifQ.PImZaSlNJ5Mn5mvIoZJXcR3E3nA9hBCXpQUhRExppN0","description":"Provide the Token to know about yourself and your data.","type":"text"},{"key":"","value":"","type":"text","disabled":true}],"url":"https://dumpapi-flask-api.onrender.com/auth/me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 02 Jul 2023 15:08:04 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"7e07cd4d181e1ff1-IAD"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-render-origin-server","value":"gunicorn"},{"key":"Set-Cookie","value":"__cf_bm=GCj7.Jakqw0qCSovdlmnKprOOy6yOno7awe5MacHLQw-1688310484-0-AVax/z7Nh4bZDuC/jaeKiqNROMFvTLvMnX95pfOebAfF5rzt1AR0q8mhvWjtzWpd6zCNjnJ7xfSHD04dfrLMV4U=; path=/; expires=Sun, 02-Jul-23 15:38:04 GMT; domain=.onrender.com; HttpOnly; Secure; SameSite=None"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 101,\n    \"firstname\": \"Example1\",\n    \"lastname\": \"Examplename\",\n    \"address\": \"Mumbai\",\n    \"salary\": 10000,\n    \"age\": 10,\n    \"deptid\": 102,\n    \"username\": \"example\"\n}"}],"_postman_id":"0435755c-a203-4828-982f-0c5d3ec04653"},{"name":"Forgot Password","id":"1181f09f-6118-45fe-ac26-ba94a3b6e4de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wbGUiLCJwYXNzd29yZCI6ImV4YW1wbGUifQ.PImZaSlNJ5Mn5mvIoZJXcR3E3nA9hBCXpQUhRExppN0","description":"<p>Use the token to identify the current user and to change the password.</p>\n","type":"text"}],"url":"https://dumpapi-flask-api.onrender.com/auth/forget?password=test","description":"<p>If you have forgotten your password but know your access token, you can reset your password by including the access <code>token</code> in the request header and passing the query parameter as <code>password=new password</code>. After successfully updating your password, make sure to log in again to generate a new access token. Please note that the old access token will no longer be valid for API calls.</p>\n","urlObject":{"protocol":"https","path":["auth","forget"],"host":["dumpapi-flask-api","onrender","com"],"query":[{"description":{"content":"<p>New password to set.</p>\n","type":"text/plain"},"key":"password","value":"test"}],"variable":[]}},"response":[{"id":"d183f1b4-ed03-4603-83a8-9e77fc310785","name":"Forgot Password","originalRequest":{"method":"PUT","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wbGUiLCJwYXNzd29yZCI6ImV4YW1wbGUifQ.PImZaSlNJ5Mn5mvIoZJXcR3E3nA9hBCXpQUhRExppN0","description":"Use the token to identify the current user and to change the password.","type":"text"}],"url":{"raw":"https://dumpapi-flask-api.onrender.com/auth/forget?password=test","protocol":"https","host":["dumpapi-flask-api","onrender","com"],"path":["auth","forget"],"query":[{"key":"password","value":"test"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 02 Jul 2023 15:16:30 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"7e07d9a1ff04f88d-IAD"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-render-origin-server","value":"gunicorn"},{"key":"Set-Cookie","value":"__cf_bm=cAqi.ONgUpkX8mwju8vpfIR1gDN_0kemNhfo_7JeED8-1688310990-0-AYXA81hH8YQgBKnbhDRgbYm5P1z6O0/XoKi7VXEwDkot5uX1OwOoSlJXd1HKY9eL5UPT1KJD7r4zwkojKo9kFio=; path=/; expires=Sun, 02-Jul-23 15:46:30 GMT; domain=.onrender.com; HttpOnly; Secure; SameSite=None"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Updated Successfully\"\n}"}],"_postman_id":"1181f09f-6118-45fe-ac26-ba94a3b6e4de"}],"id":"301f92dc-fe6c-40f9-9183-643e8fa18464","description":"<p>Register, login and Explore the API with adding <code>Token</code> in the Header.</p>\n","_postman_id":"301f92dc-fe6c-40f9-9183-643e8fa18464"},{"name":"Employees","item":[{"name":"Get All Employees","id":"b74b30cf-6ff2-4b9a-9bc7-f0d49ce478f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wbGUiLCJwYXNzd29yZCI6InRlc3QifQ.C3_A9ug9yh6WD4fqTbdnoUKOvJKxhMYNji625X_xZaY","description":"<p>Token is required for every API Calls.</p>\n","type":"text"}],"url":"https://dumpapi-flask-api.onrender.com/emp/all","description":"<p>Fetch all the employees in the database or registered users along with their details.</p>\n","urlObject":{"protocol":"https","path":["emp","all"],"host":["dumpapi-flask-api","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"77e4c29b-fe7b-44dd-b416-bfca9ecd6a9c","name":"New Request","originalRequest":{"method":"GET","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wbGUiLCJwYXNzd29yZCI6InRlc3QifQ.C3_A9ug9yh6WD4fqTbdnoUKOvJKxhMYNji625X_xZaY","description":"Token is required for every API Calls.","type":"text"}],"url":"https://dumpapi-flask-api.onrender.com/emp/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 02 Jul 2023 15:29:19 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"7e07ec67893582b7-IAD"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-render-origin-server","value":"gunicorn"},{"key":"Set-Cookie","value":"__cf_bm=EbByHW0TbRDSRaveyKBFsWIKd8CMvhd7feMMHxi0Ihw-1688311759-0-AQ7CfvOVM+e2TdaVi4C+Ba6aj6NbrErPNp70yMXwNrXmWKcf/nfv1lpGeKfRLa6w21EzKYvE3MmxYYdbRmLrlXY=; path=/; expires=Sun, 02-Jul-23 15:59:19 GMT; domain=.onrender.com; HttpOnly; Secure; SameSite=None"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"employees\": [\n        {\n            \"id\": 1,\n            \"firstname\": \"prathamesh\",\n            \"lastname\": \"dhande\",\n            \"address\": \"Boisar\",\n            \"salary\": 10000,\n            \"age\": 20,\n            \"deptid\": 101\n        },\n        {\n            \"id\": 101,\n            \"firstname\": \"Example1\",\n            \"lastname\": \"Examplename\",\n            \"address\": \"Mumbai\",\n            \"salary\": 10000,\n            \"age\": 10,\n            \"deptid\": 102\n        }\n    ]\n}"}],"_postman_id":"b74b30cf-6ff2-4b9a-9bc7-f0d49ce478f7"},{"name":"Specific Employee","id":"da578562-51c5-41d4-8abc-507e0fd45efe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wbGUiLCJwYXNzd29yZCI6InRlc3QifQ.C3_A9ug9yh6WD4fqTbdnoUKOvJKxhMYNji625X_xZaY","description":"<p>Token is Required</p>\n","type":"text"}],"url":"https://dumpapi-flask-api.onrender.com/emp/101","description":"<p>To retrieve the details of a specific employee, provide the employee ID as the endpoint. If the given employee ID is not found in the database, you will receive a message indicating that the employee ID was not found.</p>\n","urlObject":{"protocol":"https","path":["emp","101"],"host":["dumpapi-flask-api","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"650c69b9-962b-4e07-bd5c-c8276d3bb257","name":"New Request","originalRequest":{"method":"GET","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wbGUiLCJwYXNzd29yZCI6InRlc3QifQ.C3_A9ug9yh6WD4fqTbdnoUKOvJKxhMYNji625X_xZaY","description":"Token is Required","type":"text"}],"url":"https://dumpapi-flask-api.onrender.com/emp/101"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 02 Jul 2023 15:47:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"7e0806635972173d-IAD"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-render-origin-server","value":"gunicorn"},{"key":"Set-Cookie","value":"__cf_bm=8PIEqRUEVbbnzXNj3lkETPHJ0APgWv12TwkJiuFkldk-1688312823-0-Aa80KfbpDJlGpIccmBR7IgiAalhqSNEmNQjp4R0RvUnvHmgHdOjqpkWnP5dBW2cgmBj8PqAX5idVY0y3bCA4mkw=; path=/; expires=Sun, 02-Jul-23 16:17:03 GMT; domain=.onrender.com; HttpOnly; Secure; SameSite=None"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 101,\n    \"firstname\": \"Example1\",\n    \"lastname\": \"Examplename\",\n    \"address\": \"Mumbai\",\n    \"salary\": 10000,\n    \"age\": 10,\n    \"deptid\": 102\n}"}],"_postman_id":"da578562-51c5-41d4-8abc-507e0fd45efe"},{"name":"Delete Employee","id":"1a57ece6-ff96-4274-9a17-79df13cb7e50","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wbGUiLCJwYXNzd29yZCI6InRlc3QifQ.C3_A9ug9yh6WD4fqTbdnoUKOvJKxhMYNji625X_xZaY","description":"<p>Token is Required.</p>\n","type":"text"}],"url":"https://dumpapi-flask-api.onrender.com/emp/101","description":"<p>Deletes the employee with the specified ID from the database.</p>\n","urlObject":{"protocol":"https","path":["emp","101"],"host":["dumpapi-flask-api","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"70eecac2-1092-4878-bb92-01e734bf0649","name":"Delete Employee","originalRequest":{"method":"DELETE","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wbGUiLCJwYXNzd29yZCI6InRlc3QifQ.C3_A9ug9yh6WD4fqTbdnoUKOvJKxhMYNji625X_xZaY","description":"Token is Required.","type":"text"}],"url":"https://dumpapi-flask-api.onrender.com/emp/101"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 02 Jul 2023 15:51:13 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"7e080c7e9d635a21-IAD"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-render-origin-server","value":"gunicorn"},{"key":"Set-Cookie","value":"__cf_bm=HNjfOeIdqHZFXPVjeL42VcNITD0.2QQrFwQ1Hwa5lVI-1688313073-0-AUAZ84yRMZaRvaNB+dYlBkCWCkPYUoKrgk5rzgPrez7K1xewSznmFCaKKvYArqR6pv973F+Gu+HbD6/UO1/Pz5I=; path=/; expires=Sun, 02-Jul-23 16:21:13 GMT; domain=.onrender.com; HttpOnly; Secure; SameSite=None"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully Deleted Employee with ID = 101\"\n}"}],"_postman_id":"1a57ece6-ff96-4274-9a17-79df13cb7e50"},{"name":"Update Employee","id":"32901c63-317f-49f8-9d7c-e819f1dfd579","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wIiwicGFzc3dvcmQiOiJleGFtcGxlIn0.yzjLELhBzVluAMOi2gtjfwxclB_9t7vnlDo2nkP-nQA","description":"<p>Token is Required.</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"address\":\"Chennai\",\r\n    \"salary\":3000\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dumpapi-flask-api.onrender.com/emp/202","description":"<p>Update the employee details of the specified ID by sending the updated data in JSON format in the request body. The updated data should include the same parameters as during registration or login.</p>\n","urlObject":{"protocol":"https","path":["emp","202"],"host":["dumpapi-flask-api","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"97a2f016-e597-41e5-953b-34991b502861","name":"New Request","originalRequest":{"method":"POST","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wIiwicGFzc3dvcmQiOiJleGFtcGxlIn0.yzjLELhBzVluAMOi2gtjfwxclB_9t7vnlDo2nkP-nQA","description":"Token is Required.","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"address\":\"Chennai\",\r\n    \"salary\":3000\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dumpapi-flask-api.onrender.com/emp/202"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 02 Jul 2023 15:56:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"7e0813af592f29b5-IAD"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-render-origin-server","value":"gunicorn"},{"key":"Set-Cookie","value":"__cf_bm=rBKNxaQdoCdYFnjoWm75NauXJVJHacEb2dfZciLe9zU-1688313368-0-AVsNgA5rB7vN0yvxDHkCk1rpTxFo/1Uv3nrPC+0tDTMPfks+HhdBNTgTE1wESlkpMS9zRzz9T4SzWzJbHT4MY30=; path=/; expires=Sun, 02-Jul-23 16:26:08 GMT; domain=.onrender.com; HttpOnly; Secure; SameSite=None"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Employee With Id=202 Updated Successfully\"\n}"}],"_postman_id":"32901c63-317f-49f8-9d7c-e819f1dfd579"}],"id":"b44922c3-1024-47b5-b9a0-508ebf6eeb64","description":"<p>From now onwards, including a valid token in the request header is mandatory for every API call. In the employees endpoint, with a valid token, you can perform various operations such as adding a new employee, updating employee details, deleting an employee, or retrieving details of a specific employee.</p>\n","_postman_id":"b44922c3-1024-47b5-b9a0-508ebf6eeb64"},{"name":"Department","item":[{"name":"All Department","id":"d75634ab-2321-4e88-ab9d-e2fbc6e2c395","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wIiwicGFzc3dvcmQiOiJleGFtcGxlIn0.yzjLELhBzVluAMOi2gtjfwxclB_9t7vnlDo2nkP-nQA","description":"<p>Token is Required.</p>\n","type":"text"}],"url":"https://dumpapi-flask-api.onrender.com/dept/all","description":"<p>This API endpoint is used to fetch all the available departments in the system. It returns a list of departments with their respective details.</p>\n","urlObject":{"protocol":"https","path":["dept","all"],"host":["dumpapi-flask-api","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"cedffc11-8dd1-4370-aff6-081b3ada0b42","name":"New Request","originalRequest":{"method":"GET","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wIiwicGFzc3dvcmQiOiJleGFtcGxlIn0.yzjLELhBzVluAMOi2gtjfwxclB_9t7vnlDo2nkP-nQA","description":"Token is Required.","type":"text"}],"url":"https://dumpapi-flask-api.onrender.com/dept/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 02 Jul 2023 16:00:58 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"7e081ac418cc1fe2-IAD"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-render-origin-server","value":"gunicorn"},{"key":"Set-Cookie","value":"__cf_bm=5bc9HBEv2jPG3qC9.VO0Aex1KX_jOFubBjisQqO5HiE-1688313658-0-AaXtHhgJqbThkZPmxgm7tfby+LDfEic12/gZDQyWepEKihIWawioRMAT0dOtcfsPwF4Jdw1tQdRsUWDcoCYKcoo=; path=/; expires=Sun, 02-Jul-23 16:30:58 GMT; domain=.onrender.com; HttpOnly; Secure; SameSite=None"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"departments\": [\n        {\n            \"id\": 102,\n            \"name\": \"Sales\",\n            \"head\": \"Admin\"\n        },\n        {\n            \"id\": 101,\n            \"name\": \"Comp\",\n            \"head\": \"Prathamesh dhande\"\n        }\n    ]\n}"}],"_postman_id":"d75634ab-2321-4e88-ab9d-e2fbc6e2c395"},{"name":"Specific Department","id":"fcbbbd1d-f692-4558-9684-76ab348b37dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wIiwicGFzc3dvcmQiOiJleGFtcGxlIn0.yzjLELhBzVluAMOi2gtjfwxclB_9t7vnlDo2nkP-nQA","description":"<p>Token is required</p>\n","type":"text"}],"url":"https://dumpapi-flask-api.onrender.com/dept/102","description":"<p>Used to fetch the details of a specific department by including the department ID as the endpoint. It returns the department details including the department ID, name and head associated with the department.</p>\n","urlObject":{"protocol":"https","path":["dept","102"],"host":["dumpapi-flask-api","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"4085823e-3f47-4edf-bb99-c9352032f98b","name":"New Request","originalRequest":{"method":"GET","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wIiwicGFzc3dvcmQiOiJleGFtcGxlIn0.yzjLELhBzVluAMOi2gtjfwxclB_9t7vnlDo2nkP-nQA","description":"Token is required","type":"text"}],"url":"https://dumpapi-flask-api.onrender.com/dept/102"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 02 Jul 2023 16:06:24 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"7e0822bf9d5307a0-IAD"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-render-origin-server","value":"gunicorn"},{"key":"Set-Cookie","value":"__cf_bm=ZsmhnFwltSpXkVb1swJdYD5HMJIdn4CuJXkQBViOzZg-1688313984-0-ARLrSsdoU3E/yZt09XFg8bciaXyt9nxvroLliNJ1t6/46G0UD8K7Yj3AEIkSFUZGlr7qA7HaQX6B7eEzNZ+iZnQ=; path=/; expires=Sun, 02-Jul-23 16:36:24 GMT; domain=.onrender.com; HttpOnly; Secure; SameSite=None"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 102,\n    \"name\": \"Sales\",\n    \"head\": \"Admin\"\n}"}],"_postman_id":"fcbbbd1d-f692-4558-9684-76ab348b37dd"},{"name":"New Department or Update Department","id":"8127add5-b0e6-4751-8e03-656cb51a747e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wIiwicGFzc3dvcmQiOiJleGFtcGxlIn0.yzjLELhBzVluAMOi2gtjfwxclB_9t7vnlDo2nkP-nQA","description":"<p>Token is required</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"head\":\"Example 12\",\r\n    \"name\":\"Manager\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dumpapi-flask-api.onrender.com/dept/102","description":"<p>Used to update the details of a department if the given department ID is present in the database. If the given department ID is not present, it adds a new department with the given department ID. The endpoint accepts the department details in the request body in JSON format, including the department ID, name and head with the department.</p>\n","urlObject":{"protocol":"https","path":["dept","102"],"host":["dumpapi-flask-api","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"95aaf742-205c-4e7c-bc40-516cd70456eb","name":"Add Department","originalRequest":{"method":"PUT","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wIiwicGFzc3dvcmQiOiJleGFtcGxlIn0.yzjLELhBzVluAMOi2gtjfwxclB_9t7vnlDo2nkP-nQA","description":"Token is required","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Manager\",\r\n    \"head\":\"Example 5\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dumpapi-flask-api.onrender.com/dept/103"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 02 Jul 2023 16:11:55 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"7e082ad209de38f9-IAD"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-render-origin-server","value":"gunicorn"},{"key":"Set-Cookie","value":"__cf_bm=yx6vr7p8HithafUrBZEVe4XoarGaSESEnS9TnrxqXOs-1688314315-0-ASuIAmcx5GUjMPi1PymJYFowW4KM9rItad5H+e5mKEaSrqX60d21BtDvIqp+PyBa6Yd2oSezj2KddhaUX6stpRk=; path=/; expires=Sun, 02-Jul-23 16:41:55 GMT; domain=.onrender.com; HttpOnly; Secure; SameSite=None"},{"key":"Server","value":"cloudflare"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Department ID=103 Added Successfully.\"\n}"},{"id":"39e54351-3cf8-4f5d-9774-833b5f5c93ab","name":"Update Department","originalRequest":{"method":"PUT","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wIiwicGFzc3dvcmQiOiJleGFtcGxlIn0.yzjLELhBzVluAMOi2gtjfwxclB_9t7vnlDo2nkP-nQA","description":"Token is required","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"head\":\"Example 12\",\r\n    \"name\":\"Manager\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dumpapi-flask-api.onrender.com/dept/102"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 02 Jul 2023 16:13:19 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"7e082ce02e5e8f1a-IAD"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-render-origin-server","value":"gunicorn"},{"key":"Set-Cookie","value":"__cf_bm=f4d0fTUjmfaXGSEaYsut8QWlLZyRF_jpKy_RJq.2050-1688314399-0-AdlEjPaSBZ8kx2FZeItukDkLu7GUNNyTfyCatCRi8ImkpOKxRlrnvCfwruSbyyi7v9IY42Nl3CVLKIafMcNrrtg=; path=/; expires=Sun, 02-Jul-23 16:43:19 GMT; domain=.onrender.com; HttpOnly; Secure; SameSite=None"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Department ID=102 Updated Successfully.\"\n}"}],"_postman_id":"8127add5-b0e6-4751-8e03-656cb51a747e"},{"name":"Delete Department","id":"a18cdda7-69fa-4a95-b51a-9524d943be7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wIiwicGFzc3dvcmQiOiJleGFtcGxlIn0.yzjLELhBzVluAMOi2gtjfwxclB_9t7vnlDo2nkP-nQA","description":"<p>Token is Required.</p>\n","type":"text"}],"url":"https://dumpapi-flask-api.onrender.com/dept/102","description":"<p>Used to delete the department with the given department ID from the database. If the department ID exists, it will be deleted along with all associated data. If the department ID is not found, an appropriate message will be returned indicating that the department does not exist.</p>\n","urlObject":{"protocol":"https","path":["dept","102"],"host":["dumpapi-flask-api","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"ad2356bf-8d68-45ff-b49a-58f68f7d095c","name":"Delete Department","originalRequest":{"method":"DELETE","header":[{"key":"Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4YW1wIiwicGFzc3dvcmQiOiJleGFtcGxlIn0.yzjLELhBzVluAMOi2gtjfwxclB_9t7vnlDo2nkP-nQA","description":"Token is Required.","type":"text"}],"url":"https://dumpapi-flask-api.onrender.com/dept/102"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 02 Jul 2023 16:16:30 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"7e08318a3deb05e2-IAD"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-render-origin-server","value":"gunicorn"},{"key":"Set-Cookie","value":"__cf_bm=xg4xLVzYd8UYu5t.3kx4ZbqFzL3CCrD2j4Q2PXQvtbQ-1688314590-0-AZS4DAtF1sHxzg7GXnFDEsMErsnTZyW43ykidQKAK29X0OmmKeedo52vG7MnH3W3I4P64NcyeQxXUoKS/rqnqoU=; path=/; expires=Sun, 02-Jul-23 16:46:30 GMT; domain=.onrender.com; HttpOnly; Secure; SameSite=None"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully Deleted Department id=102.\"\n}"}],"_postman_id":"a18cdda7-69fa-4a95-b51a-9524d943be7b"}],"id":"a42dfa12-03ed-422b-ba57-5a51f71feb15","description":"<p>This API endpoint provides information about the departments where employees are allocated, along with their randomly assigned department IDs while registering. The <code>/dept/</code> endpoint includes data for all departments in the system.</p>\n","_postman_id":"a42dfa12-03ed-422b-ba57-5a51f71feb15"}]}