Updated all 404 and 500 responses to use problem details model (#14634)

* Updated all 404 and 500 responses to use problem details

* Updated OpenApi.json

* Add missing ProducesResponseType

* Updated OpenApi.json
This commit is contained in:
Bjarke Berg
2023-08-04 10:51:20 +02:00
committed by GitHub
parent 7b78fe9ced
commit 45033437a2
111 changed files with 1773 additions and 309 deletions

View File

@@ -23,7 +23,7 @@ public class NotificationsController : DocumentControllerBase
[MapToApiVersion("1.0")]
[HttpGet("{id:guid}/notifications")]
[ProducesResponseType(typeof(IEnumerable<DocumentNotificationResponseModel>), StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status404NotFound)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
public async Task<IActionResult> Notifications(Guid id)
{
IContent? content = await _contentEditingService.GetAsync(id);