V1::ForumQuestionsController
Forum Questions
index
Get a list of forum_questions
URL
GET /forum_sections/:forum_section_id/forum_questions, /users/:user_id/forum_questions or /forum_questionsParâmetros opcionais
| Nome | Tipo | Descrição |
|---|---|---|
| answered_by_admin | Boolean | Filter by questions answerd by collaborator or not. |
Objeto resposta
| Array<ForumQuestion> | The created forum_question |
create
Create new forum_questions
URL
POST /forum_sections/:forum_section_id/forum_questionsParâmetros obrigatórios
| Nome | Tipo | Descrição |
|---|---|---|
| forum_questions | Hash | The forum_questions to create |
| forum_question[forum_question_id] | Integer | ForumSection of the forum_question (required) |
| forum_question[title] | String | Title of the forum_question (required) |
| forum_question[description] | String | Description of the forum_question (required) |
| forum_question[fixed] | String | Fixed of the forum_question (optional) |
Parâmetros opcionais
| Nome | Tipo | Descrição |
|---|---|---|
| forum_question[created_at] | DateTime | Creation date. Passing this attribute implies to not run object's callbacks |
Objeto resposta
| ForumQuestion | The created forum_question or a list of errors |
show
Get a forum_question information
URL
GET /forum_questions/:idParâmetros obrigatórios
| Nome | Tipo | Descrição |
|---|---|---|
| id | Integer | of the forum_question |
Objeto resposta
| ForumQuestion | The requested forum_question |
update
Update an existing forum_question and redirect to 'show' action
URL
PUT/PATCH /forum_questions/:idParâmetros obrigatórios
| Nome | Tipo | Descrição |
|---|---|---|
| forum_question | Hash | The forum_question to update |
| forum_question[forum_section_id] | Integer | ForumSection of the forum_question (required) |
| forum_question[title] | String | Title of the forum_question (required) |
| forum_question[description] | String | Description of the forum_question (required) |
| forum_question[fixed] | String | Fixed of the forum_question (optional) |
Objeto resposta
| ForumQuestion | The created forum_question or a list of errors |
move
Update an existing forum_question with a new forum_section and redirect to 'show' action
URL
PUT/PATCH /forum_questions/:idParâmetros obrigatórios
| Nome | Tipo | Descrição |
|---|---|---|
| forum_question | Hash | The forum_question to update |
| forum_question[forum_section_id] | Integer | ForumSection of the forum_question (required) |
Objeto resposta
| ForumQuestion | The created forum_question or a list of errors |
destroy
URL
DELETE /forum_questions/:idParâmetros obrigatórios
| Nome | Tipo | Descrição |
|---|---|---|
| id | Integer | Id of an forum_question |