Questions and Answers

my karate script is failing due to 'authentication failed' in POST method but working with GET call in same feature file. POST working well in postman

Feature: testing e2e scenario of Gorest API's Background: * url 'https://gorest.co.in/public/v2/users' Scenario: get all user details in gorest Given path '331868' And headers Authorization = tokenID #getting tokenID from config file When method GET Then status 200 * print response * def Getresponse = response * match $.name == Getresponse.nam...

API returns data without token

Hi, https://gorest.co.in/public/v2/users endpoint is returning data even i dont set a token or set a wrong one ? How this can be possible ?

CORS ERROR

Yesterday the api was fine but today it gives me cors error ?

how should i create url for fetching?

i want to get google url...if i write a keyword in input it could need to search in google about that keyword.what is the url for fetching

How to make a request so that the response receives a list of specific users with specific id (id1, id2, id3, id4)?

My attempts: GET https://gorest.co.in/public/v2/users/id1,id2,id3,id4 GET https://gorest.co.in/public/v2/users?ids[]=id1&ids[]=id2&ids[]=id3&ids[]=id4 GET https://gorest.co.in/public/v2/users?filter[ids]=id1,id2,id3,id4 GET https://gorest.co.in/public/v2/users?ids=id1,id2,id3,id4 GET https://gorest.co.in/public/v2/users?where={"id":["id1","id2",...

Getting 422 as Request Status?

I have attached my javascript code. Please help someone where the mistake is in my code. document.addEventListener('DOMContentLoaded', function () { let requestBodyEl = document.getElementById('requestBody'); let sendPostRequestBtn = document.getElementById('sendPostRequestBtn'); let requestStatus = document.getElementById('requestStatus')...

Error: socket hang up

Error: socket hang up curl --location --request GET 'https://gorest.co.in/public/v2/users' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer d2fe991f5ebd13b1a845cfd691535f442563a09b9268649aa708fb61fc9a0c68'

How to delete users with specific ID numbers?

Hello! Tell me, please, how can I do this? I have 3 users created, how can I delete them by sending only one request?

distributed data storage system?

distributed data storage system?

Im Getting 404 after using the provided Record

{ "name": "krishna", "gender": "male", "email": "[email protected]", "status": "inactive" } 8285bad90dc25c1862d41f7066188cade1e21e7e8e78f381dec5b710020a22ed Token