V1::ThemesController

Themes

index

Get a list of themes

URL

GET /themes

Objeto resposta

Array<Theme>

The created themes

create

Create new theme

URL

POST /themes

Parâ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/duplicate

Objeto resposta

Theme

The created theme or a list of errors

publish

Publish a theme to current school

URL

POST /themes/:id/publish

Objeto resposta

Theme

The created theme or a list of errors

show

Get a themes information

URL

GET /themes/:id

Parâ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/:id

Parâ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/:id

Parâmetros obrigatórios

Nome Tipo Descrição
id Integer

Id of an theme