Add endpoint to download Transmodel GraphQL Schema #6330
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR add a read-only endpoint (HTTP GET) for fetching the Transmodel GraphQL Schema. The schema can be fetched today using the GraphQL introspection, but this is a bit technical and the result need to be translated into SDL (if needed).
We will use this to generate the input controls for the trip search in the OTP Debug UI. It can also be used for "human introspection".
Issue
🟥 No issue, but this is part of making a generic input control for the Debug UI.
Unit tests
🟥 This is just one line of code with logic - only using library code. The schema is for
Documentation
✅ The usage is documented with a comment included at the top of the schema file.
🟥 The endpoint is not documented outside the code - this should be sufficient since it is not intended
for production/integration - only for the convenience of developers.
Changelog
🟥 Not a production feature or relevant for Product Owners
Bumping the serialization version id
🟥 Not needed