The pages functionality allows creating CMS style pages.
| Action | Method | Resource | Description |
|---|
| Get pages | GET | /pages | Gell all pages of the project |
| Get page | GET | /pages/page_id | Get page with id page_id |
| Create pages | POST | /pages | Create New page |
| Update page | PUT | /pages/page_id | Update page with id page_id |
| Delete page | DELETE | /pages/page_id | Delete page with id page_id |
The pages model has the following attributes:
| attribute | type | required |
|---|
| name | string | no, required to create. |
| slug | string | no, required to create. |
| body | text | no, required to create. |
| enabled | boolean | no |
| type | integer | no |
| public | boolean | no |
| Name | Value | Description |
|---|
| Full Page | 1 | A page with is a full page to show as another template. |
| Block page | 2 | A part of a page to show inside of a template. |