Skip to content

spike: allow passing schema via header when calling gql endpoint #5037

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

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

connoratrug
Copy link
Contributor

@connoratrug connoratrug commented May 9, 2025

What are the main changes you did

  • to have shorter urls we remove the parts than can be default when we know to context ( i.e a server that is used to server a catalogue app form a known schema )

https://data-catalogue-acc.molgeniscloud.org/catalogue/catalogue/EUChildNetwork/collections/ABCD

can then become

https://data-catalogue-acc.molgeniscloud.org/catalogue/EUChildNetwork/collections/ABCD

where the nginx proxy should set -H 'MG-Schema: catalogue' header and the catalogue should be updated to remove the schema from the pages path and gql request urls

How to test

  • explain here what to do to test this (or point to unit tests)

Checklist

  • updated docs in case of new feature
  • added/updated tests
  • added/updated testplan to include a test for this fix, including ref to bug using # notation

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant