Skip to content

Commit a63d1ff

Browse files
committed
Add BadRequest to Update API Response
1 parent 5137eb7 commit a63d1ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Poc.TextProcessor.Presentation.RestApi/Controllers/TextController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public IActionResult GetOptions()
3030
[HttpGet("Statistics")]
3131
[Produces("application/json", "application/xml")]
3232
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(Statistics))]
33+
[ProducesResponseType(StatusCodes.Status400BadRequest)]
3334
public IActionResult GetStatistics([FromQuery] string textToAnalyze)
3435
{
3536
var textStatics = _textService.GetStatistics(textToAnalyze);

0 commit comments

Comments
 (0)