{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"2df0a653-6366-4d81-b6cc-080cf487460b","name":"GoREST API","description":"## OVERVIEW\n\nThe **GoREST** API provides a free sandbox environment for performing REST API and GraphQL testing for prototyping. Registerd users provide fake user data, but the responses are real.\n\n## Who is the GoREST API for?\n\nThe audience for the \\[GoREST API\\]([http://gorest.co.in](http://gorest.co.in)) is developers who need an easy way to test REST API and GraphQL endpoints.\n\n## Authorization (Authentication)\n\nUsers are required to create an account.\n\nA Token Bearer is not required to GET all general user information, but all other specific requests require a Token Bearer.\n\n## Base URL\n\n[http://gorest.co.in](www.gorest.co.in)\n\n## Support\n\nIf you encounter any errors while using the API, please use the Help button at the top of the main screen to read our knowledge base. If your question has not been answered, feel free to post a new question. We’ll do our best to resolve the issue as soon as possible. Please keep in mind that we are located in the India Standard Time Zone (IST).\n\nIf you would like to contact us for any other reason, please use our contact form on the bottom of the main page.\n\n## Users Endpoint\n\nThe GoREST API provides user profiles with user id, name, email, gender and status. You can perform CRUD operations on all users.\n\n\\[Users Endpoint\\]([http://gorest.co.in/public/v2/users](https://gorest.co.in/public/v2/users))\n\nThe following request are allowed for the Users Endpoint:\n\n**GET, POST, PUT, PATCH, DELETE**\n\n| **Parameter Name** | **Data Type** | **Description** |\n| --- | --- | --- |\n| id | integer | Required. The id is generated automatically when a user is created. The id is required for PUT and DELETE methods.  <br>**Note:** You must use id for the GET method when requesting the user details with specific user id. |\n| name | string | Required. Used for creating a new user. The name is required for POST, PUT and PATCH. |\n| email | string | Required. The email is used for creating a new user. The email is required for POST, PUT and PATCH. |\n| status | string | Required. The status is used for creating a new user. The status is required for POST, PUT and PATCH. Available options include: active or inactive. |\n| gender | string | Required. The gender is used for creating a new user. The gender is required for POST. The available genders include: male or female. |\n\n## Posts Endpoint\n\nThe GoREST API provides posts with post id, user_id, title and body. You can perform CRUD operations on all posts.\n\n\\[Posts Endpoint\\]([http://gorest.co.in/public/v2/posts](https://gorest.co.in/public/v2/posts))\n\nThe following request are allowed for the Posts Endpoint:\n\n**GET, POST, PUT, PATCH, DELETE**\n\n| **Parameter Name** | **Data Type** | **Description** |\n| --- | --- | --- |\n| id | integer | Required. The id is generated automatically when a message is created. The id is required for PUT, PATCH and DELETE methods.  <br>**Note:** You must use id for the GET method when requesting post details with specific id. |\n| user_id | integer | Required. The user_id is required for POST, PUT, PATCH and DELETE . |\n| title | string | Required. The title is required for POST, PUT, PATCH and DELETE. |\n| body | string | Required. The body is required for POST, PUT, PATCH and DELETE. |\n\n## HTTP and Error Codes\n\nThe GoRest API returns HTTP status and error code messages.\n\n| **HTTP Code** | **Message** | **Description** |\n| --- | --- | --- |\n| 200 | OK | The request was successful. |\n| 201 | OK | A resource was successfully created in response to a POST request. The Location header contains the URL pointing to the newly created resource. |\n| 204 | OK | The request was handled successfully and the response contains no body content (like a DELETE request). |\n| 304 | OK | The resource was not modified. You can use the cached version. |\n| 400 | Bad Request | The request was invalid or missing a required parameter. |\n| 401 | Not Found | Authentication failed. |\n| 403 | Not Found | The authenticated user is not allowed to access the specified API endpoint. |\n| 404 | Not Found | The requested resource was not found. |\n| 405 | Not Found | Method not allowed. Please check the Allow header for the allowed HTTP methods. |\n| 415 | Not Found | Unsupported media type. The requested content type or version number is invalid. |\n| 422 | Not Found | Data validation failed (in response to a POST request, for example). Please check the response body for detailed error messages. |\n| 429 | Not Found | Too many requests. The request was rejected due to rate limiting. |\n| 500 | Internal Server Error | An error occurred on the server. |","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"7428671","team":1030448,"collectionId":"2df0a653-6366-4d81-b6cc-080cf487460b","publishedId":"2s9YJXaQxS","public":true,"publicUrl":"https://documenter-api.postman.tech/view/7428671/2s9YJXaQxS","privateUrl":"https://go.postman.co/documentation/7428671-2df0a653-6366-4d81-b6cc-080cf487460b","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":""}],"appearance":{"default":"light","themes":[{"name":"dark","logo":null,"colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":null,"colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.10.1","publishDate":"2023-09-26T15:48:47.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":null,"logoDark":null}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/d7dae406fa30b640f569ab649af8dfffd2ebc5d4584292b7f17f59a8aa3ecfcf","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2s9YJXaQxS"}