{"info":{"_postman_id":"c29015e5-ca89-4019-8f55-b834c9023753","name":"Users","description":"You can use this API endpoint to get the list of all users, users with ID, or users with their first names.\n\nThere are no specific types passed for this request as it is a GET request.\n\n# Parameters\n\n| **Parameter Name** | **Value** | **Description** |\n| --- | --- | --- |\n| id | integer | Required when getting specific user details with their id. |\n| name | string | Required, when getting specific user details with their names. |\n\n## Status Codes\n\n*   **200**: OK. Everything worked as expected.\n*   **400**: Bad request. This could be caused by various actions by the user, such as providing invalid JSON data in the request body etc.\n    \n\n# Syntax","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"item":[{"name":"all users","request":{"auth":{"type":"bearer","bearer":[{"key":"token","value":"06970e17c620878698dc100980bb0d0da7d1ab955415e73be195d329d5f09a94","type":"string"}]},"method":"GET","header":[],"url":{"raw":"https://gorest.co.in/public/v2/users","protocol":"https","host":["gorest","co","in"],"path":["public","v2","users"]},"description":"For GET all user details, you do not need to pass any parameters. You do not need to pass any parameters to GET all user details."},"response":[{"name":"all users","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://gorest.co.in/public/v2/users","protocol":"https","host":["gorest","co","in"],"path":["public","v2","users"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 08 Mar 2022 06:32:32 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Pagination-Total","value":"4114"},{"key":"X-Pagination-Pages","value":"206"},{"key":"X-Pagination-Page","value":"1"},{"key":"X-Pagination-Limit","value":"20"},{"key":"X-Links-Previous","value":""},{"key":"X-Links-Current","value":"https://gorest.co.in/public/v2/users?page=1"},{"key":"X-Links-Next","value":"https://gorest.co.in/public/v2/users?page=2"},{"key":"ETag","value":"W/\"7e7f750d501261ddca00e393386184a8\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"0528310d-fb58-4c28-9f89-56b4468c106b"},{"key":"X-Runtime","value":"0.017600"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"body":"[\n    {\n        \"id\": 4189,\n        \"name\": \"Deeptiman Agarwal\",\n        \"email\": \"deeptiman_agarwal@roob.org\",\n        \"gender\": \"male\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 4188,\n        \"name\": \"Vedanga Patil\",\n        \"email\": \"patil_vedanga@rogahn.com\",\n        \"gender\": \"male\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 4187,\n        \"name\": \"Deeptiman Pandey\",\n        \"email\": \"deeptiman_pandey@little-keeling.com\",\n        \"gender\": \"male\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 4186,\n        \"name\": \"Ghanshyam Mehra I\",\n        \"email\": \"ghanshyam_mehra_i@buckridge.name\",\n        \"gender\": \"male\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 4185,\n        \"name\": \"The Hon. Ekdant Ahuja\",\n        \"email\": \"ahuja_hon_ekdant_the@gerhold-herman.co\",\n        \"gender\": \"male\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 4183,\n        \"name\": \"Prof. Aadrika Reddy\",\n        \"email\": \"aadrika_prof_reddy@becker.org\",\n        \"gender\": \"male\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 4182,\n        \"name\": \"Sanya Mukhopadhyay\",\n        \"email\": \"sanya_mukhopadhyay@willms.biz\",\n        \"gender\": \"male\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 4181,\n        \"name\": \"Bandhu Dhawan CPA\",\n        \"email\": \"cpa_dhawan_bandhu@wiza.name\",\n        \"gender\": \"female\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 4180,\n        \"name\": \"Fr. Gandharv Dutta\",\n        \"email\": \"dutta_fr_gandharv@lockman.org\",\n        \"gender\": \"male\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 4179,\n        \"name\": \"Miss Dhanadeepa Saini\",\n        \"email\": \"miss_saini_dhanadeepa@kunde.biz\",\n        \"gender\": \"male\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 4174,\n        \"name\": \"The Hon. Atmaja Bandopadhyay\",\n        \"email\": \"the_hon_bandopadhyay_atmaja@dicki-dickinson.biz\",\n        \"gender\": \"female\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 4173,\n        \"name\": \"Tarun Somayaji\",\n        \"email\": \"somayaji_tarun@osinski.biz\",\n        \"gender\": \"female\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 4171,\n        \"name\": \"Giriraaj Naik\",\n        \"email\": \"naik_giriraaj@predovic.org\",\n        \"gender\": \"male\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 4170,\n        \"name\": \"Datta Nayar\",\n        \"email\": \"datta_nayar@buckridge-schamberger.net\",\n        \"gender\": \"male\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 4169,\n        \"name\": \"Anjushri Desai\",\n        \"email\": \"desai_anjushri@schinner.biz\",\n        \"gender\": \"male\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 4168,\n        \"name\": \"Chandramani Mishra VM\",\n        \"email\": \"chandramani_mishra_vm@goyette-aufderhar.net\",\n        \"gender\": \"male\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 4167,\n        \"name\": \"Trisha Pillai\",\n        \"email\": \"trisha_pillai@witting.info\",\n        \"gender\": \"male\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 4166,\n        \"name\": \"Rev. Deevakar Tandon\",\n        \"email\": \"rev_deevakar_tandon@emard-jacobi.info\",\n        \"gender\": \"male\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 4165,\n        \"name\": \"Anilabh Achari\",\n        \"email\": \"achari_anilabh@langosh.io\",\n        \"gender\": \"female\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 4164,\n        \"name\": \"Girik Agarwal\",\n        \"email\": \"agarwal_girik@jacobi.net\",\n        \"gender\": \"female\",\n        \"status\": \"active\"\n    }\n]"}]},{"name":"filter user with gender as female","request":{"method":"GET","header":[],"url":{"raw":"https://gorest.co.in/public/v2/users/?gender=female","protocol":"https","host":["gorest","co","in"],"path":["public","v2","users",""],"query":[{"key":"gender","value":"female"}]},"description":"To get the user details by their id, use the *id* parameter. Refer to the *Parameter Table* for more details."},"response":[{"name":"filter user with gender as female","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://gorest.co.in/public/v2/users/?gender=female","protocol":"https","host":["gorest","co","in"],"path":["public","v2","users",""],"query":[{"key":"gender","value":"female"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 09 Mar 2022 10:22:02 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-RateLimit-Limit","value":"90"},{"key":"X-RateLimit-Remaining","value":"89"},{"key":"X-RateLimit-Reset","value":"1"},{"key":"X-Pagination-Total","value":"1748"},{"key":"X-Pagination-Pages","value":"88"},{"key":"X-Pagination-Page","value":"1"},{"key":"X-Pagination-Limit","value":"20"},{"key":"X-Links-Previous","value":""},{"key":"X-Links-Current","value":"https://gorest.co.in/public/v2/users?page=1"},{"key":"X-Links-Next","value":"https://gorest.co.in/public/v2/users?page=2"},{"key":"ETag","value":"W/\"479e4d27a88119668496693876222f1b\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"d42cecb5-79d5-42d5-9ea7-90886e24b881"},{"key":"X-Runtime","value":"0.024307"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"body":"[\n    {\n        \"id\": 3608,\n        \"name\": \"Mrs. Chitrali Gill\",\n        \"email\": \"mrs_gill_chitrali@franecki-mclaughlin.co\",\n        \"gender\": \"female\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 3605,\n        \"name\": \"Kali Guha\",\n        \"email\": \"kali_guha@fritsch.co\",\n        \"gender\": \"female\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 3603,\n        \"name\": \"Rukhmani Trivedi\",\n        \"email\": \"trivedi_rukhmani@hansen.name\",\n        \"gender\": \"female\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 3598,\n        \"name\": \"Umang Bhattathiri\",\n        \"email\": \"umang_bhattathiri@ortiz.com\",\n        \"gender\": \"female\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 3594,\n        \"name\": \"Ganaka Nayar\",\n        \"email\": \"ganaka_nayar@bins.io\",\n        \"gender\": \"female\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 3592,\n        \"name\": \"Bankim Bhat\",\n        \"email\": \"bhat_bankim@boyle.name\",\n        \"gender\": \"female\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 3591,\n        \"name\": \"Rev. Aatreya Guha\",\n        \"email\": \"aatreya_guha_rev@reichel-okeefe.org\",\n        \"gender\": \"female\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 3588,\n        \"name\": \"Rev. Devesh Ahluwalia\",\n        \"email\": \"rev_devesh_ahluwalia@lind.name\",\n        \"gender\": \"female\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 3587,\n        \"name\": \"Aasa Shah\",\n        \"email\": \"shah_aasa@wisoky.org\",\n        \"gender\": \"female\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 3584,\n        \"name\": \"Deepan Kakkar\",\n        \"email\": \"deepan_kakkar@lesch.org\",\n        \"gender\": \"female\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 3580,\n        \"name\": \"Mani Gill PhD\",\n        \"email\": \"mani_phd_gill@walker.co\",\n        \"gender\": \"female\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 3579,\n        \"name\": \"Bandhu Pandey\",\n        \"email\": \"pandey_bandhu@ferry-herzog.biz\",\n        \"gender\": \"female\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 3578,\n        \"name\": \"Vrinda Bandopadhyay\",\n        \"email\": \"bandopadhyay_vrinda@klocko-hauck.com\",\n        \"gender\": \"female\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 3577,\n        \"name\": \"Arjun Gupta\",\n        \"email\": \"arjun_gupta@ryan.info\",\n        \"gender\": \"female\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 3576,\n        \"name\": \"Gati Ahluwalia\",\n        \"email\": \"ahluwalia_gati@mraz.net\",\n        \"gender\": \"female\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 3575,\n        \"name\": \"Aarya Bhat\",\n        \"email\": \"bhat_aarya@botsford.net\",\n        \"gender\": \"female\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 3574,\n        \"name\": \"Aagam Trivedi\",\n        \"email\": \"aagam_trivedi@cronin.info\",\n        \"gender\": \"female\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 3571,\n        \"name\": \"Agnimitra Varrier\",\n        \"email\": \"varrier_agnimitra@collins.biz\",\n        \"gender\": \"female\",\n        \"status\": \"inactive\"\n    },\n    {\n        \"id\": 3570,\n        \"name\": \"The Hon. Shresthi Khan\",\n        \"email\": \"the_shresthi_hon_khan@kerluke.net\",\n        \"gender\": \"female\",\n        \"status\": \"active\"\n    },\n    {\n        \"id\": 3568,\n        \"name\": \"Shankar Trivedi\",\n        \"email\": \"trivedi_shankar@kertzmann.name\",\n        \"gender\": \"female\",\n        \"status\": \"inactive\"\n    }\n]"}]},{"name":"user with id","request":{"method":"GET","header":[],"url":{"raw":"https://gorest.co.in/public/v2/users?id=3647","protocol":"https","host":["gorest","co","in"],"path":["public","v2","users"],"query":[{"key":"id","value":"3647"}]}},"response":[{"name":"user with id","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://gorest.co.in/public/v2/users?id=3647","protocol":"https","host":["gorest","co","in"],"path":["public","v2","users"],"query":[{"key":"id","value":"3647"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 09 Mar 2022 05:11:33 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-RateLimit-Limit","value":"90"},{"key":"X-RateLimit-Remaining","value":"89"},{"key":"X-RateLimit-Reset","value":"1"},{"key":"X-Pagination-Total","value":"1"},{"key":"X-Pagination-Pages","value":"1"},{"key":"X-Pagination-Page","value":"1"},{"key":"X-Pagination-Limit","value":"20"},{"key":"X-Links-Previous","value":""},{"key":"X-Links-Current","value":"https://gorest.co.in/public/v2/users?page=1"},{"key":"X-Links-Next","value":""},{"key":"ETag","value":"W/\"6892be805b0c784c61ea51418bddfcb2\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"15d7b517-e3dc-41ef-9682-98581f645618"},{"key":"X-Runtime","value":"0.020504"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"body":"[\n    {\n        \"id\": 3647,\n        \"name\": \"Sharmila Bhattathiri\",\n        \"email\": \"sharmila_bhattathiri@torp-kiehn.com\",\n        \"gender\": \"male\",\n        \"status\": \"active\"\n    }\n]"}]},{"name":"get user with name","request":{"method":"GET","header":[],"url":{"raw":"https://gorest.co.in/public/v2/users/?name=Sharmila Bhattathiri","protocol":"https","host":["gorest","co","in"],"path":["public","v2","users",""],"query":[{"key":"name","value":"Sharmila Bhattathiri"}]},"description":"To add a new user.\n\n## Status Codes\n\n*   **200**: OK. Everything worked as expected.\n*   **204**: The request was handled successfully and the response contains no body content (like a DELETE request).\n*   **400**: Bad request. This could be caused by various actions by the user, such as providing invalid JSON data in the request body etc.\n*   **404**: The requested resource does not exist.\n    \n\n## Syntax\n\n`import requests`\n\n`url = \"`[`https://gorest.co.in/public/v2/users/\"`](https://gorest.co.in/public/v2/users/)\n\n`payload={} headers = { 'Authorization': 'Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' }`\n\n`response = requests.request(\"GET\", url, headers=headers, data=payload)`\n\n`print(response.text)`\n\n> When you run the POST request and you receive 422 response code, do validate body data structure.  \n> **  \n> Example:  \n> **{ \"name\": \"Amit Singh\", \"email\": \"[amitsiddhu.singh@yahoo.com](mailto:amitsiddhu.singh@yahoo.com)\", \"gender\": \"male\", \"status\": \"active\" }\n> \n> **Note:** When you run the POST request and you receive 422 response code, do validate body data structure.  \n> **  \n> **Example:**\n> \n> **`{ \"name\": \"Amit Singh\", \"email\": \"amitsiddhu.singh@yahoo.com\", \"gender\": \"male\", \"status\": \"active\" }`"},"response":[{"name":"get user with name","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://gorest.co.in/public/v2/users/?status=active","protocol":"https","host":["gorest","co","in"],"path":["public","v2","users",""],"query":[{"key":"name","value":"Sharmila Bhattathiri","disabled":true},{"key":"status","value":"active"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 09 Mar 2022 05:13:33 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-RateLimit-Limit","value":"90"},{"key":"X-RateLimit-Remaining","value":"89"},{"key":"X-RateLimit-Reset","value":"1"},{"key":"X-Pagination-Total","value":"1"},{"key":"X-Pagination-Pages","value":"1"},{"key":"X-Pagination-Page","value":"1"},{"key":"X-Pagination-Limit","value":"20"},{"key":"X-Links-Previous","value":""},{"key":"X-Links-Current","value":"https://gorest.co.in/public/v2/users?page=1"},{"key":"X-Links-Next","value":""},{"key":"ETag","value":"W/\"6892be805b0c784c61ea51418bddfcb2\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"2f1cbccb-daa7-4e43-b2a0-391eb9ed63e3"},{"key":"X-Runtime","value":"0.035992"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[{"expires":"Invalid Date"}],"body":"[\n    {\n        \"id\": 3647,\n        \"name\": \"Sharmila Bhattathiri\",\n        \"email\": \"sharmila_bhattathiri@torp-kiehn.com\",\n        \"gender\": \"male\",\n        \"status\": \"active\"\n    }\n]"}]},{"name":"add a new user","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"name\": \"Bablu Singh\",\r\n        \"email\": \"bablu.singh@gmail.com\",\r\n        \"gender\": \"male\",\r\n        \"status\": \"active\"\r\n    }","options":{"raw":{"language":"json"}}},"url":{"raw":"https://gorest.co.in/public/v2/users/?name=Bablu Singh&email=bablu.singh@gmail.com&gender=male&status=active","protocol":"https","host":["gorest","co","in"],"path":["public","v2","users",""],"query":[{"key":"name","value":"Bablu Singh"},{"key":"email","value":"bablu.singh@gmail.com"},{"key":"gender","value":"male"},{"key":"status","value":"active"}]},"description":"To add a new user to the database.\n\n# Status Codes\n\n*   **200:** OK. Everything worked as expected.\n*   **204**: The request was handled successfully and the response contains no body content (like a DELETE request).\n*   **400**: Bad request. This could be caused by various actions by the user, such as providing invalid JSON data in the request body etc.\n*   **404**: The requested resource does not exist.\n    \n\n> **Note:** When you run the post request and you receive 422 response code, do validate body data structure.  \n>   \n> **Example:**\n> \n> `{ \"name\": \"Amit Singh\", \"email\": \"amitsiddhu.singh@yahoo.com\", \"gender\": \"male\", \"status\": \"active\" }`\n> \n> Even if you give a unique id to your user, the system overwrites the unique id and provides a new id."},"response":[{"name":"add a new user","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"name\": \"Bablu Singh\",\r\n        \"email\": \"bablu.singh@gmail.com\",\r\n        \"gender\": \"male\",\r\n        \"status\": \"active\"\r\n    }","options":{"raw":{"language":"json"}}},"url":{"raw":"https://gorest.co.in/public/v2/users/?name=Bablu Singh&email=bablu.singh@gmail.com&gender=male&status=active","protocol":"https","host":["gorest","co","in"],"path":["public","v2","users",""],"query":[{"key":"name","value":"Bablu Singh"},{"key":"email","value":"bablu.singh@gmail.com"},{"key":"gender","value":"male"},{"key":"status","value":"active"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 09 Mar 2022 10:14:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-RateLimit-Limit","value":"90"},{"key":"X-RateLimit-Remaining","value":"89"},{"key":"X-RateLimit-Reset","value":"1"},{"key":"Location","value":"https://gorest.co.in/public/v2/users/5840"},{"key":"ETag","value":"W/\"2fdd8c4709cd9840db2914de50216b61\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"3059cf7c-54b9-4a4b-a9af-dea01562f215"},{"key":"X-Runtime","value":"0.026558"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"Vary","value":"Origin"}],"cookie":[],"body":"{\n    \"id\": 5840,\n    \"name\": \"Bablu Singh\",\n    \"email\": \"bablu.singh@gmail.com\",\n    \"gender\": \"male\",\n    \"status\": \"active\"\n}"}]},{"name":"modifying a user","request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n        \"name\": \"BB\",\r\n        \r\n    }"},"url":{"raw":"https://gorest.co.in/public/v2/users/4718","protocol":"https","host":["gorest","co","in"],"path":["public","v2","users","4718"]},"description":"To modify user details.\n\n> **Note:** To modify user details, provide the user ID in the path and not as a query parameter.  \n> Example: `https://gorest.co.in/public/v2/users/4484`\n\n# Status Codes\n\n*   **200:** OK. Everything worked as expected.\n*   **204**: The request was handled successfully and the response contains no body content (like a DELETE request).\n*   **400**: Bad request. This could be caused by various actions by the user, such as providing invalid JSON data in the request body etc.\n*   **404**: The requested resource does not exist."},"response":[{"name":"modifying a user","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n        \"name\": \"BB\",\r\n        \r\n    }"},"url":{"raw":"https://gorest.co.in/public/v2/users/4718","protocol":"https","host":["gorest","co","in"],"path":["public","v2","users","4718"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 09 Mar 2022 07:38:53 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-RateLimit-Limit","value":"90"},{"key":"X-RateLimit-Remaining","value":"89"},{"key":"X-RateLimit-Reset","value":"1"},{"key":"ETag","value":"W/\"54dc976e411bfaee1ae4a5fb1a5a51e5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"5b0d5c5a-440e-4c39-9102-4decc7a7bb81"},{"key":"X-Runtime","value":"0.019040"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"body":"{\n    \"id\": 4718,\n    \"name\": \"AA\",\n    \"email\": \"AA.singh@gmail.com\",\n    \"gender\": \"male\",\n    \"status\": \"active\"\n}"}]},{"name":"delete a user","request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n        \"id\": \"3636\"\r\n        \r\n    }"},"url":{"raw":"https://gorest.co.in/public/v2/users/3636","protocol":"https","host":["gorest","co","in"],"path":["public","v2","users","3636"]},"description":"To delete a user from the database.\n\n> **Note**: When you delete a user, the user is removed from the database and you receive the status as 204, instead of 200.\n\n# Status Codes\n\n*   **200**: OK. Everything worked as expected.\n*   **204**: The request was handled successfully and the response contains no body content (like a DELETE request).\n*   **400**: Bad request. This could be caused by various actions by the user, such as providing invalid JSON data in the request body etc.\n*   **401**: Authentication failed.\n*   **404**: The requested resource does not exist."},"response":[{"name":"delete a user","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://gorest.co.in/public/v2/users/4718","protocol":"https","host":["gorest","co","in"],"path":["public","v2","users","4718"]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 09 Mar 2022 07:39:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-RateLimit-Limit","value":"90"},{"key":"X-RateLimit-Remaining","value":"89"},{"key":"X-RateLimit-Reset","value":"1"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"8b3c5cf5-a79d-4578-bf94-96d3344c1fd5"},{"key":"X-Runtime","value":"0.020419"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"Vary","value":"Origin"}],"cookie":[],"body":null}]},{"name":"add another new","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"name\": \"AA\",\r\n        \"id\": \"707002\",\r\n        \"email\": \"AA.singh@gmail.com\",\r\n        \"gender\": \"male\",\r\n        \"status\": \"active\"\r\n    }"},"url":{"raw":"https://gorest.co.in/public/v2/users/?name=AA&email=AA.singh@gmail.com&gender=male&status=active&id=707002","protocol":"https","host":["gorest","co","in"],"path":["public","v2","users",""],"query":[{"key":"name","value":"AA"},{"key":"email","value":"AA.singh@gmail.com"},{"key":"gender","value":"male"},{"key":"status","value":"active"},{"key":"id","value":"707002"}]},"description":"To add a new user to the database.\n\n# Status Codes\n\n*   **200:** OK. Everything worked as expected.\n*   **204**: The request was handled successfully and the response contains no body content (like a DELETE request).\n*   **400**: Bad request. This could be caused by various actions by the user, such as providing invalid JSON data in the request body etc.\n*   **404**: The requested resource does not exist.\n    \n\n> **Note:** When you run the post request and you receive 422 response code, do validate body data structure.\n> \n> **Example**:\n> \n> `{ \"name\": \"Amit Singh\", \"email\": \"amitsiddhu.singh@yahoo.com\", \"gender\": \"male\", \"status\": \"active\" }`\n\n> `Even if you give a unique id to your user, the system overwrites the unique id and provides a new id.`"},"response":[{"name":"add a new user 1","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"name\": \"AA\",\r\n        \"id\": \"707002\",\r\n        \"email\": \"AA.singh@gmail.com\",\r\n        \"gender\": \"male\",\r\n        \"status\": \"active\"\r\n    }"},"url":{"raw":"https://gorest.co.in/public/v2/users/?name=AA&email=AA.singh@gmail.com&gender=male&status=active&id=707002","protocol":"https","host":["gorest","co","in"],"path":["public","v2","users",""],"query":[{"key":"name","value":"AA"},{"key":"email","value":"AA.singh@gmail.com"},{"key":"gender","value":"male"},{"key":"status","value":"active"},{"key":"id","value":"707002"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 09 Mar 2022 07:37:49 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-RateLimit-Limit","value":"90"},{"key":"X-RateLimit-Remaining","value":"89"},{"key":"X-RateLimit-Reset","value":"1"},{"key":"Location","value":"https://gorest.co.in/public/v2/users/4718"},{"key":"ETag","value":"W/\"54dc976e411bfaee1ae4a5fb1a5a51e5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"c46f1122-1075-4129-a026-c1090ddd9eb9"},{"key":"X-Runtime","value":"0.027694"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"Vary","value":"Origin"}],"cookie":[],"body":"{\n    \"id\": 4718,\n    \"name\": \"AA\",\n    \"email\": \"AA.singh@gmail.com\",\n    \"gender\": \"male\",\n    \"status\": \"active\"\n}"}]},{"name":"modify user details with PATCH","request":{"method":"PATCH","header":[],"url":{"raw":"https://gorest.co.in/public/v2/users/","protocol":"https","host":["gorest","co","in"],"path":["public","v2","users",""]},"description":"To modify user details.\n\n# Status Codes\n\n*   **200:** OK. Everything worked as expected.\n*   **204**: The request was handled successfully and the response contains no body content (like a DELETE request).\n*   **400**: Bad request. This could be caused by various actions by the user, such as providing invalid JSON data in the request body etc.\n*   **404**: The requested resource does not exist.\n    \n\n> **Note**: To modify user details, provide the user ID in the path and not as a query parameter.  \n> **Example:** `https://gorest.co.in/public/v2/users/5840`"},"response":[{"name":"modify user details with PATCH","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n        \"name\": \"Bablu Sinha\",\r\n        \"email\": \"bablu.singh@gmail.com\",\r\n        \"gender\": \"male\",\r\n        \"status\": \"active\"\r\n    }"},"url":{"raw":"https://gorest.co.in/public/v2/users/5840","protocol":"https","host":["gorest","co","in"],"path":["public","v2","users","5840"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 09 Mar 2022 10:31:12 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-RateLimit-Limit","value":"90"},{"key":"X-RateLimit-Remaining","value":"89"},{"key":"X-RateLimit-Reset","value":"1"},{"key":"ETag","value":"W/\"2fdd8c4709cd9840db2914de50216b61\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"5e6a7fd5-87a2-4dd2-9b9d-f6c6ffd1ce05"},{"key":"X-Runtime","value":"0.029191"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"body":"{\n    \"id\": 5840,\n    \"name\": \"Bablu Singh\",\n    \"email\": \"bablu.singh@gmail.com\",\n    \"gender\": \"male\",\n    \"status\": \"active\"\n}"}]}],"auth":{"type":"bearer","bearer":[{"key":"token","value":"06970e17c620878698dc100980bb0d0da7d1ab955415e73be195d329d5f09a94","type":"string"}]},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""]}},{"listen":"test","script":{"type":"text/javascript","exec":[""]}}]}