Ali
Ali

Reputation: 131

How to return all the translations in Shopware 6 "Store API"?

I want to grab all categories through /store-api/category/ endpoint with all translations at once from my Shopware website. I am currently able to grab translations by modifying the URL, such as '/de/store-api/category/' for German translations and so on. But I want all translated instances in one go. Is that possible?

Upvotes: 1

Views: 498

Answers (1)

dneustadt
dneustadt

Reputation: 13161

No, that's not possible via the store-api. The store-api uses the current sales channel context to determine the language to be used. It's a customer-facing API and as such meant to only serve data associated to the corresponding sales channel. For collecting data in a larger scope, you can use the backend-facing admin-api.

Upvotes: 2

Related Questions