Skip to main content
GET
/
articles
/
getByCategoryId
/
{categoryId}
Get articles by category id (public)
curl --request GET \
  --url https://api.octaviatech.app/cms/articles/getByCategoryId/{categoryId} \
  --header 'x-api-key: <api-key>'
{
  "success": true,
  "statusCode": 200,
  "message": "OK",
  "data": {
    "items": [
      {
        "id": "{{objectId}}",
        "category": [
          "{{objectId}}"
        ],
        "slug": "droopy-nose"
      }
    ],
    "pagination": {
      "total": 1,
      "page": 1,
      "limit": 20,
      "totalPages": 1
    }
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

categoryId
string
required
Example:

"{{objectId}}"

Query Parameters

page
integer
Required range: x >= 1
Example:

1

limit
integer
Required range: 1 <= x <= 100
Example:

20

Response

OK

The response is of type any.