GET
/v2/cms/contents/{projectId}https://apis-spb.konso.io/v2/cms/contents/{projectId}Get contents
Параметры запроса
contentIdnumberFilter by specific content ID
pageIdnumberFilter by page ID
typenumberFilter by content type ID
slugstringFilter by content slug (supports base64 encoding)
qstringSearch query for content
categorynumberFilter by category ID
isPublishedbooleanFilter by published status
isLatestbooleanFilter for latest content only
sortnumberSort order (0-4, representing different sorting types)
fromnumberStarting index for pagination (default: 0)
tonumberEnding index for pagination (default: 1)
Ответы
200Contents retrieved successfully
тип: PagedResponse<ContentDto>
Язык:
expand_more
Пример запроса
curl --request GET \
--url 'https://apis-spb.konso.io/v2/cms/contents/{projectId}?category=1&isPublished=true&from=0&to=10' \
--header 'x-api-key: {your-api-key}'Response Example200
{
"list": [
{
"id": 1,
"title": "My Article",
"slug": "my-article",
"summary": "Brief summary",
"isPublished": true,
"categoryId": 1
}
],
"total": 25
}KONSO