graphql-voyager icon indicating copy to clipboard operation
graphql-voyager copied to clipboard

Add option to enter endpoint URL

Open FluorescentHallucinogen opened this issue 6 years ago • 5 comments

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 avatar Apr 29 '19 13:04 FluorescentHallucinogen

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?

FluorescentHallucinogen avatar May 01 '19 16:05 FluorescentHallucinogen

Hi @FluorescentHallucinogen,

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

IvanGoncharov avatar May 02 '19 11:05 IvanGoncharov

@IvanGoncharov Have you had a chance to look?

FluorescentHallucinogen avatar May 06 '19 17:05 FluorescentHallucinogen

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

IvanGoncharov avatar May 06 '19 20:05 IvanGoncharov

I can confirm this works. Thanks @IvanGoncharov

spawnia avatar Feb 24 '21 13:02 spawnia