V1::ForumSectionsController
ForumSectionsController
index
Get a list of forum_sections
URL
GET /forums/:forum_id/forum_sectionsParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
forum_id | Integer | Identifier of the Forum object |
Objeto resposta
Array<ForumSection> | The created forum_section |
create
Create new forum_section
URL
POST /forums/:forum_id/forum_sectionsParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
forum_id | Integer | Identifier of the Forum object |
forum_section | Hash | The forum_section to create |
forum_section[parent_forum_section_id] | Integer | Identifier of the parent ForumSection |
forum_section[title] | String | Title of the forum_section |
forum_section[description] | String | Description of the forum_section |
Parâmetros opcionais
Nome | Tipo | Descrição |
---|---|---|
forum_section[sequence] | Integer | sequence of the forum_section, is calculated automatically if not passed |
forum_section[category] | String | Category of the forum_section |
Objeto resposta
ForumSection | The created forum_section or a list of errors |
show
Get a forum_section information
URL
GET /forum_sections/:idParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
id | Integer | of the forum_section |
Objeto resposta
ForumSection | The requested forum_section |
update
Update an existing forum_section and redirect to 'show' action
URL
PUT/PATCH /forum_sections/:idParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
forum_section | Hash | The forum_section to create |
forum_section[forum_id] | Integer | Identifier of the Forum object |
forum_section[parent_forum_section_id] | Integer | Identifier of the parent ForumSection |
forum_section[title] | String | Title of the forum_section |
forum_section[description] | String | Description of the forum_section |
forum_section[sequence] | String | Sequence of the forum_section |
Parâmetros opcionais
Nome | Tipo | Descrição |
---|---|---|
forum_section[category] | String | Category of the forum_section |
Objeto resposta
ForumSection | The created forum_section or a list of errors |
destroy
URL
DELETE /forum_sections/:idParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
id | Integer | Identifier of the forum_section |