API — Pages
Documentacao tecnica gerada automaticamente a partir da especificacao OpenAPI.
GET /api/pages
List Pages
Parametros:
| Nome | Tipo | Obrigatorio | Descricao |
|---|---|---|---|
| page | integer | Nao | — |
| page_size | integer | Nao | — |
Exemplo resposta (200):
{
"items": [
"..."
],
"total": 0,
"page": 0,
"page_size": 0,
"pages": 0
}
Erros possiveis: 422 Validation Error
POST /api/pages
Create Page
Corpo do pedido:
| Campo | Tipo | Obrigatorio | Descricao |
|---|---|---|---|
| slug | string | Sim | Slug |
| title | string | Sim | Title |
| content | object | Nao | Content |
| is_active | boolean | Nao | Is Active |
| display_order | integer | Nao | Display Order |
| meta_title | object | Nao | Meta Title |
| meta_description | object | Nao | Meta Description |
Exemplo pedido:
{
"slug": "string",
"title": "string",
"content": null,
"is_active": true,
"display_order": 0,
"meta_title": null,
"meta_description": null
}
Exemplo resposta (201):
{
"id": 0,
"slug": "string",
"title": "string",
"content": null,
"is_active": true,
"display_order": 0,
"meta_title": null,
"meta_description": null,
"created_at": null,
"updated_at": null
}
Erros possiveis: 422 Validation Error
GET /api/pages/{slug}
Get Page By Slug
Parametros:
| Nome | Tipo | Obrigatorio | Descricao |
|---|---|---|---|
| slug | string | Sim | — |
Exemplo resposta (200):
{
"id": 0,
"slug": "string",
"title": "string",
"content": null,
"is_active": true,
"display_order": 0,
"meta_title": null,
"meta_description": null,
"created_at": null,
"updated_at": null
}
Erros possiveis: 422 Validation Error
PUT /api/pages/{page_id}
Update Page
Parametros:
| Nome | Tipo | Obrigatorio | Descricao |
|---|---|---|---|
| page_id | integer | Sim | — |
Corpo do pedido:
| Campo | Tipo | Obrigatorio | Descricao |
|---|---|---|---|
| slug | object | Nao | Slug |
| title | object | Nao | Title |
| content | object | Nao | Content |
| is_active | object | Nao | Is Active |
| display_order | object | Nao | Display Order |
| meta_title | object | Nao | Meta Title |
| meta_description | object | Nao | Meta Description |
Exemplo pedido:
{
"slug": null,
"title": null,
"content": null,
"is_active": null,
"display_order": null,
"meta_title": null,
"meta_description": null
}
Exemplo resposta (200):
{
"id": 0,
"slug": "string",
"title": "string",
"content": null,
"is_active": true,
"display_order": 0,
"meta_title": null,
"meta_description": null,
"created_at": null,
"updated_at": null
}
Erros possiveis: 422 Validation Error
DELETE /api/pages/{page_id}
Delete Page
Parametros:
| Nome | Tipo | Obrigatorio | Descricao |
|---|---|---|---|
| page_id | integer | Sim | — |
Resposta (204): Successful Response
Erros possiveis: 422 Validation Error
Documentacao gerada automaticamente.