Blog Categories

Get all categories and detail via store-api.

Good to know: This API document based on Shopware 6 default store-api. You can reach base introduction document via https://shopware.stoplight.io/docs/store-api/38777d33d92dc-quick-start-guide and request body; criteria and detail via https://shopware.stoplight.io/docs/store-api/cf710bf73d0cd-search-queries. This document gives us store api basics. Ongrano Blog Pro is designed based on these basics.

Category List

POST https://your-site.com/store-api/blog-category

return all categories regarding your criteria.

Request Header

Name
Type
Description
Value

Accept*

string

Response type

application/json

Content-Type*

string

Request type

application/json

sw-access-key*

string

Headless Access Key

SWSCQ1V1QJHHSKV0TFLYZ0LSD1

Request Body - Example Criteria 1

{
    "limit": 5,
    "page": 1,
    "filter": [
        { "type": "equals", "field": "active", "value": true }
    ],
    "sort": [
        { "field": "name", "order": "ASC" }    
    ], 
    "includes": {
        "ongrano_blog_category": ["id", "name"]
    }
}

Request Body - Example Criteria 2

Category Detail

POST https://your-site.com/store-api/blog-category/{blogCategoryId}

return blog category regarding {blogCategoryId}

Request Header

Name
Type
Description
Value

Accept*

string

Response type

application/json

Content-Type*

string

Request type

application/json

sw-access-key*

string

Headless Access Key

SWSCQ1V1QJHHSKV0TFLYZ0LSD1

Request Body - Example Criteria

Last updated