apiBrands
QueryKey requiredShop API: active brands, filterable by name, paged by cursor; etag covers the whole filtered set.
Arguments
| Name | Type | Description |
|---|---|---|
| cursor | String | |
| ifNoneMatch | String | |
| limit | Int | |
| query | String |
Returns
Example
query ApiBrands($cursor: String, $ifNoneMatch: String, $limit: Int, $query: String) {
apiBrands(cursor: $cursor, ifNoneMatch: $ifNoneMatch, limit: $limit, query: $query) {
etag
items {
id
isRestricted
slug
updatedAt
}
nextCursor
notModified
}
}curl -sS https://api.wamia.tn/connect/graphql \
-H 'content-type: application/json' \
-H 'x-api-key: wamia_…' \
-H 'user-agent: my-integration/1.0.0 (+https://shop.example.tn)' \
-H 'wamia-idempotency-key: 6f0e1a2b-…' \
--data '{"query":"query ApiBrands($cursor: String, $ifNoneMatch: String, $limit: Int, $query: String) { apiBrands(cursor: $cursor, ifNoneMatch: $ifNoneMatch, limit: $limit, query: $query) { etag items { id isRestricted slug updatedAt } nextCursor notModified } }"}'