V1::ExtraContentsController

ExtraContents

index

Get a list of extra_contents

URL

GET /extra_contents

Objeto resposta

Array<ExtraContent>

The created extra_contents

show

Get a extra_content information

URL

GET /extra_content/:id

Parâmetros obrigatórios

Nome Tipo Descrição
id Integer

of the extra_content

Objeto resposta

ExtraContent

The requested extra_content

create

Create new extra_content

URL

POST /extra_contents

Parâmetros obrigatórios

Nome Tipo Descrição
extra_content Hash

The extra_content to create

extra_content[resource_id] Integer

Resource id of the extra_content

extra_content[media_id] Integer

Media id of the extra_content

extra_content[order] Integer

order of the extra_content

extra_content[downloadable] Boolean

Flag to define the downloadable of the object

extra_content[available] Boolean

Flag to define the available of the object

Parâmetros opcionais

Nome Tipo Descrição
extra_content[title] String

Title of the extra_content

extra_content[resource_type] String

Resource type of the extra_content

Objeto resposta

ExtraContent

The created extra_content or a list of errors

update

Update an existing extra_content and redirect to 'show' action

URL

PUT/PATCH /extra_content/:id

Parâmetros obrigatórios

Nome Tipo Descrição
extra_content Hash

The extra_content to update

extra_content[resource_id] Integer

Resource id of the extra_content

extra_content[media_id] Integer

Media id of the extra_content

extra_content[order] Integer

order of the extra_content

extra_content[downloadable] Boolean

Flag to define the downloadable of the object

extra_content[available] Boolean

Flag to define the available of the object

Parâmetros opcionais

Nome Tipo Descrição
extra_content[title] String

Title of the extra_content

extra_content[resource_type] String

Resource type of the extra_content

Objeto resposta

ExtraContent

The created extra_content or a list of errors

destroy

Destroy a extra_content

URL

DELETE /extra_content/:id

Parâmetros obrigatórios

Nome Tipo Descrição
id Integer

Id of an extra_content