Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: point to additional i in GraphiQL URL [ci skip] #5825

Merged
merged 1 commit into from
May 7, 2024

Conversation

ytausch
Copy link
Contributor

@ytausch ytausch commented May 2, 2024

Summary

It is possible to misread the /graphiql URL as /graphql, see #5824. This change adds an additional hint to the documentation reader.

Closes #5824

@ytausch ytausch requested a review from a team as a code owner May 2, 2024 13:01
@@ -11,7 +11,7 @@ makes it easy to use this API in a Java application.
## URLs
- GraphQL endpoint: [`http://localhost:8080/otp/gtfs/v1`](http://localhost:8080/otp/gtfs/v1)
- HTML schema documentation: [https://docs.opentripplanner.org/api/dev-2.x/graphql-gtfs/](https://docs.opentripplanner.org/api/dev-2.x/graphql-gtfs/)
- Built-in visual GraphQL client: [http://localhost:8080/graphiql](http://localhost:8080/graphiql)
- Built-in visual GraphQL client: [http://localhost:8080/graphiql](http://localhost:8080/graphiql) (note the additional `i`!)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should change this and not have the product name in the URL (graphiql) is the name of the library used. It is common, and people how have worked with GraphQL might expect it to be like this, but manybe it is better to use /query-ui or something like that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's probably an ever better idea.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We discussed this in the dev meeting today and decided just to merge it. Using a product name in the url is at least a bit unfortunate, but also kind of a de facto standard.

@leonardehrenfried leonardehrenfried changed the title docs: point to additional i in GraphiQL URL docs: point to additional i in GraphiQL URL [ci skip] May 7, 2024
@leonardehrenfried leonardehrenfried merged commit e49ea2e into opentripplanner:dev-2.x May 7, 2024
@t2gran t2gran added this to the 2.6 (next release) milestone May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Visual GraphQL Client not available in Docker Image
3 participants