Skip to content

GET /api/faq/categories

Publiek endpoint om FAQ-categorieen op te halen.

Base URL

  • Productie: https://faq.dlapolakow.app

Request

  • Methode: GET
  • Pad: /api/faq/categories

Query params

  • lang (string, optional): pl,en,nl. Standaard is pl.

Request voorbeeld

bash
curl -X GET "https://faq.dlapolakow.app/api/faq/categories?lang=nl"

Response 200

json
{
  "ok": true,
  "categories": [
    {
      "id": 1,
      "name": {
        "pl": "Formalnosci",
        "en": "Formalities",
        "nl": "Formaliteiten"
      },
      "label": "Formaliteiten",
      "published_count": 3
    }
  ]
}

Endpoint gedrag

  • Retourneert alle categorieen uit faq_categories.
  • label is gelokaliseerd op basis van lang.
  • published_count is het aantal gepubliceerde FAQ-items in die categorie.

Foutcodes

  • 500 serverfout:
json
{
  "ok": false,
  "error": "Unknown error"
}