docs update
This commit is contained in:
parent
a7566e2cd3
commit
8a80013c94
3 changed files with 20 additions and 1 deletions
|
|
@ -56,6 +56,13 @@ public class QuestionController : ControllerBase
|
|||
return Ok(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Обновляет вопрос целиком
|
||||
/// </summary>
|
||||
/// <param name="dto"></param>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="surveyId"></param>
|
||||
/// <returns></returns>
|
||||
[Authorize]
|
||||
[HttpPut("{id}")]
|
||||
public async Task<IActionResult> UpdateQuestion([FromBody] QuestionUpdateDto dto, [FromRoute] int id,
|
||||
|
|
@ -67,6 +74,12 @@ public class QuestionController : ControllerBase
|
|||
return Ok(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Удаляет вопрос по его ID
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="surveyId"></param>
|
||||
/// <returns></returns>
|
||||
[Authorize]
|
||||
[HttpDelete("{id}")]
|
||||
public async Task<IActionResult> DeleteQuestion([FromRoute] int id, [FromRoute] int surveyId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue