{"info":{"_postman_id":"9db03e66-bdc5-4295-9b74-4ba683ff18bb","name":"Assignment-3","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"50841493","collectionId":"9db03e66-bdc5-4295-9b74-4ba683ff18bb","publishedId":"2sBXcHgdjn","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-02-26T12:17:53.000Z"},"item":[{"name":"All States","id":"c4ac2d9d-b0aa-41e3-b1fe-08fb01e3806d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/states","description":"<p>Fetches the complete list of all states available in the database along with their details such as name, population, GDP, literacy rate, and annual budget.EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["states"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c4ac2d9d-b0aa-41e3-b1fe-08fb01e3806d"},{"name":"By id","id":"7677403c-e616-4eed-aa74-3660127f09ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/states/:id","description":"<p>Retrieves a specific state’s details based on the provided <code>id</code>.<br />Returns full state information if the ID exists.EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["states",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"7677403c-e616-4eed-aa74-3660127f09ed"},{"name":"highestGDP","id":"eb49cb23-4ca1-46c5-b113-1be401cc57fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/states/highest-gdp","description":"<p>Returns the state having the highest GDP value from the database.EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["states","highest-gdp"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"eb49cb23-4ca1-46c5-b113-1be401cc57fa"},{"name":"Add newState","id":"b815ffb7-7d0b-4d29-ae22-34a9a222c912","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \r\n    \"name\": \"florida\",\r\n    \"population\": 908780,\r\n    \"GDP\": 349893548348\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/states","description":"<p>Creates a new state record in the database.<br />Requires state details (name, population, GDP, etc.) in the request body.EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["states"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b815ffb7-7d0b-4d29-ae22-34a9a222c912"},{"name":"Updated a single field","id":"afe2c0a7-2873-47b1-bbde-27b6ef0910c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Anisha\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/states/:id","description":"<p>Updates a specific state entirely or modifies a single field using the provided <code>id</code>.EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["states",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"14","key":"id"}]}},"response":[],"_postman_id":"afe2c0a7-2873-47b1-bbde-27b6ef0910c7"},{"name":"edit AnnualBudget","id":"e398a813-d30f-4dac-a7e6-58b6b5396b74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"annualBudget\": 73849845\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/states/:id/annualbudget","description":"<p>Updates the annual budget of a specific state based on the provided <code>id</code>.EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["states",":id","annualbudget"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"3","key":"id"}]}},"response":[],"_postman_id":"e398a813-d30f-4dac-a7e6-58b6b5396b74"},{"name":"update population","id":"23d5761e-2bbc-4df2-8f16-25a06593a187","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"population\": 73849845\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/states/:id/population","description":"<p>Updates the population value of a specific state using the provided <code>id</code>.EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["states",":id","population"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"3","key":"id"}]}},"response":[],"_postman_id":"23d5761e-2bbc-4df2-8f16-25a06593a187"},{"name":"update literacyRate","id":"d211e279-6c74-416c-ab0a-5dc78f7b3e83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"literacyRate\": 82.34\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/states/:id/literacyrate","description":"<p>Partially updates the literacy rate of a specific state using the provided <code>id</code>.EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["states",":id","literacyrate"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"d211e279-6c74-416c-ab0a-5dc78f7b3e83"},{"name":"update GDP","id":"4747564f-0850-427b-967e-0009dba83cdb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"gdp\": 82.34\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/states/:id/gdp","description":"<p>Partially updates the GDP of a specific state using the provided <code>id</code>.EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["states",":id","gdp"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"4747564f-0850-427b-967e-0009dba83cdb"},{"name":"updating a given field","id":"7e276b29-6f33-4624-bae8-0cb405e22623","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"population\": 12\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/states/:id","description":"<p>Partially updates any given field of a specific state using the provided <code>id</code>.EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["states",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"7e276b29-6f33-4624-bae8-0cb405e22623"},{"name":"Delete a user","id":"07ab1d1a-477e-426a-8b78-ce7ae4bff94a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"population\": 12\r\n}"},"url":"http://localhost:3000/states/:id","description":"<p>Deletes a specific state record from the database using the provided <code>id</code>.EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["states",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"07ab1d1a-477e-426a-8b78-ce7ae4bff94a"},{"name":"Delete By Name","id":"11766023-60ca-4f08-9d9d-936983743164","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3000/states/name/:statename","description":"<p>Deletes a state record based on the provided state name.EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["states","name",":statename"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"Andra Pradesh","key":"statename"}]}},"response":[],"_postman_id":"11766023-60ca-4f08-9d9d-936983743164"},{"name":"delete by literacy","id":"342dbf8c-9c6f-49c5-9d63-e5342e1880d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3000/states/low-literacy/:percentage","description":"<p>Deletes all states whose literacy rate is lower than the provided percentage value.</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["states","low-literacy",":percentage"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"67.12","key":"percentage"}]}},"response":[],"_postman_id":"342dbf8c-9c6f-49c5-9d63-e5342e1880d1"}]}