What I want to be able to do is go into a browser,...
# prisma-whats-new
l
What I want to be able to do is go into a browser, enter something like https://api.graph.cool/simple/v1/[my project key]/query=allAttractions?query=query%7BallAttractions%7Bname%7D%7D and have it return the JSON instead of opening the playground
n
I think using cURL is the right thing here
Copy code
curl '<https://api.graph.cool/simple/v1/cixos23120m0n0173veiiwrjr>' -H 'content-type: application/json' --data-binary '{"query":"query {\n  allMovies {\n    id\n  }\n}","variables":null}'
l
Nilan, curl is fine, but I was hoping we could make HTTP requests in a browser and get a JSON response.
Is there not an endpoint that responds to web requests directly?
n
your endpoint reacts to HTTP POST directly, and to HTTP GET with the playground
there's no other option available