V1::ThemesController
Themes
create
Create new theme
URL
POST /themesParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
theme | Hash | Theme to create |
theme[name] | String | Name of the theme |
Objeto resposta
Theme | The created theme or a list of errors |
duplicate
Duplicate a theme creating a exact copy of it
URL
POST /themes/:id/duplicateObjeto resposta
Theme | The created theme or a list of errors |
publish
Publish a theme to current school
URL
POST /themes/:id/publishObjeto resposta
Theme | The created theme or a list of errors |
show
Get a themes information
URL
GET /themes/:idParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
id | Integer | of the theme |
Objeto resposta
Theme | The requested theme |
update
Update an existing theme
URL
PUT/PATCH /themes/:idParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
theme | Hash | Theme to create |
theme[name] | String | Name of the theme |
theme[active] | Boolean | Flag that says if this is must be the active theme |
Objeto resposta
Theme | The created theme or a list of errors |
destroy
Destroy theme
URL
DELETE /themes/:idParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
id | Integer | Id of an theme |