Questions and Answers

"message": "Authentication failed" gives for valid token

Hi I am a API learner use the gorest api for learning , I used the valid token first time it works but when I try again it gives error ' "message": "Authentication failed" . is there any reason for this Thank Nirosha

401 unauthorized for post request on deploy

post, patch, and delete user works fine in localhost but not when deployed to vercel. is it the intended response for deployed sites?

Token

how to get token?

PUT request body for posts endpoint

i tried this but it didn't work. can anyone help? { "id": 69255, "user_id": 5166222, "title": "This Side of Paradise", "body": "Off with his head!" }

Run locally ?

Greetings. Is there any repo where I can download the code from and run it locally?

delete

how to delete account and create new account

Access Token

Access Token

Error Message

i want the error messages when the server side is not working

How to add error messages to my users when something wrong?

when this site is not spelled correctly or if this site is at the time of using in my application is not responding then i want to show the error message in the browser.Likewise,some other error messages and success messages are also i want to show to the user in browser if user post their data to server then show "new user data added successful...

GraphQL filtering

I can't find definitions for filters other than ID in GraphQL schema. Is there a way to obtain users by a name using GraphQL, for instance? Example I can filter providing a name filter in the URL like this: "https://gorest.co.in/public/v2/users?name=ka" Is there a way to obtain the same result but using a GraphQL query?