graphql-kit / graphql-voyager

🛰️ Represent any GraphQL API as an interactive graph
https://graphql-kit.com/graphql-voyager/
MIT License
7.74k stars 513 forks source link

Add option to enter endpoint URL #116

Open FluorescentHallucinogen opened 5 years ago

FluorescentHallucinogen commented 5 years ago

Currently, https://apis.guru/graphql-voyager/ supports visualizing GraphQL APIs by

  1. entering SDL
  2. entering introspection
  3. using one of built-in samples (Star Wars, Yelp, Shopify Storefront, GitHub)

But it doesn't support visualizing GraphQL APIs by entering the GraphQL API endpoint URL.

This is the first thing I was looking for when I first saw a GraphQL Voyager to try it with my API (with minimal effort). Entering URL is the most intuitive and expected way for users. BTW, visualizing by URL is already implemented in https://birdseye.novvum.io and https://brbb.github.io/graphql-rover/.

FluorescentHallucinogen commented 5 years ago

I've tried to add querystring param ?url=http://www.path.to/graphql/endpoint to https://apis.guru/graphql-voyager/ as suggested in https://github.com/APIs-guru/graphql-voyager/issues/4#issuecomment-333816142, but for some reason it doesn't work (anymore).

@RomanGotsiy @IvanGoncharov Has anything changed since that time?

IvanGoncharov commented 5 years ago

Hi @FluorescentHallucinogen,

It's regression after our recent refactoring. I will look into it.

FluorescentHallucinogen commented 5 years ago

@IvanGoncharov Have you had a chance to look?

IvanGoncharov commented 5 years ago

@FluorescentHallucinogen Thanks for the reminder. I added back support for '?url=' Example: http://apis.guru/graphql-voyager/?url=https://api.graphql.jobs/

spawnia commented 3 years ago

I can confirm this works. Thanks @IvanGoncharov