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

API - Channels #3374

Closed
acerov opened this issue Feb 18, 2025 · 1 comment
Closed

API - Channels #3374

acerov opened this issue Feb 18, 2025 · 1 comment

Comments

@acerov
Copy link

acerov commented Feb 18, 2025

Hi all,

I found that for language there is parameter in URL for example http://localhost:3000/shop-api?languageCode=en
How do I query API for one channel, for example query products assigned to channel?

Where to put channel id or token?

Thnx

@acerov
Copy link
Author

acerov commented Feb 18, 2025

As I found in documentation https://docs.vendure.io/guides/storefront/connect-api/ you have to add request header with channel token ('vendure-token': 'your-channel-token').

I tried in default playground http://localhost:3000/shop-api but with no luck, don't know in what format should header be in HTTP-HEADERS lower left corner.

But I tried https://altairgraphql.dev/ and with token header it works as expected.

@acerov acerov closed this as completed Feb 18, 2025
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

No branches or pull requests

1 participant