Questions and Answers
Searchable, indexed, public. Quick way to learn what other developers are running into.
422 Unprocessable Entity for POST Call
While sending below Post REQUEST to create new user in the end point : https://gorest.co.in/public/v2/users , [ { "email": "testric1234@yopmail.com", "name": "Ric Jais", "gender": "female", "status": "active" } ] It gives below- [ { "field": "em...
422 Unprocessable entity
While sending Post REQUEST in the following end point : https://gorest.co.in/public/v2/users , Input is provided via CSV File. Facing 422 Unprocessable entity . Iteration is displayed as 1. Same error , when we try to create more than one user in a same json request body.
CORS
i have problem with " Access to fetch at 'https://gorest.co.in/public-api/posts?page=9' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, s...
CORS Errors for the v2 endpoints
Hi! I can get the posts/comments/users without the authentication token, but if I try to use it I get a CORS error: Access to XMLHttpRequest at 'https://gorest.co.in/public/v2/comments' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight ...
X-Pagination-Limit Problem
hello, I changed the header by adding "x-pagination-limit" with a value of 20, but the result still shows only 10 lists. is the pagination header not working?
There is no response body on post request?
I am sending post request successfully and response status 201 but there is no response body. Also it doesn't exist in the API logs.
Getting 403 using axios
Hello i'm getting error 403 forbbiten acces when using axios.get on https://gorest.co.in/public/v2/users this is my code: try{ let users = await axios.get('https://gorest.co.in/public/v2/users?access-token=MY-TOKEN-HERE) console.log(users) } catch(err) { console.log(...
How to access the protected resources in WSO2 API-Manager after imported into yaml file of GoRest API and deployed n published in API-Manager ?
I'm just trying this public API's by creating yaml and tested in swagger editor, there I got response from protected resources(POST/PUT/DELETE) by passsing the Authentication bearer token , But I want to test the same scenarios after imported yaml file into wso2 API-Manager ...