API
Every endpoint, with its signature and parameters. Base URL: https://gaborvilics.be/api/docs
List categories
functionGET /api/docs/categories All categories, ordered by sortOrder.
List projects
functionGET /api/docs/projects Project summaries.
Get project
functionGET /api/docs/projects/{id} Full project payload (the project-kind page).
| Prop | Type | Required | Description |
|---|---|---|---|
id | string (path) | Yes | Project id |
Resolve
functionGET /api/docs/resolve?path= Resolve any path to { kind, data }. 404 if unknown.
| Prop | Type | Required | Description |
|---|---|---|---|
path | string (query) | Yes | Site path, e.g. /docs-api/overview |
Search
functionGET /api/docs/search?q= Search projects and pages.
| Prop | Type | Required | Description |
|---|---|---|---|
q | string (query) | Yes | Query string |
Create page
functionPOST /api/docs/admin/pages Create a page. 409 if the path already exists.
| Prop | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Unique site path |
kind | string | Yes | Page kind |
projectId | string? | — | Owning project |
data | json | Yes | Verbatim payload |
Update page
functionPUT /api/docs/admin/pages/{*path} Replace a page's kind, projectId and data by path.
| Prop | Type | Required | Description |
|---|---|---|---|
path | string (catch-all) | Yes | Existing page path |
Delete page
functionDELETE /api/docs/admin/pages/{*path} Delete a page by path.
| Prop | Type | Required | Description |
|---|---|---|---|
path | string (catch-all) | Yes | Existing page path |
Create project
functionPOST /api/docs/admin/projects Create a project summary row.
Create category
functionPOST /api/docs/admin/categories Create a category.