Skip to content

Commit a9e5a46

Browse files
authored
Added missing 404 (#15915)
1 parent d033624 commit a9e5a46

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/Umbraco.Cms.Api.Management/Controllers/User/Current/GetPermissionsCurrentUserController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public GetPermissionsCurrentUserController(
3131
[MapToApiVersion("1.0")]
3232
[HttpGet("permissions")]
3333
[ProducesResponseType(typeof(UserPermissionsResponseModel), StatusCodes.Status200OK)]
34+
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
3435
public async Task<IActionResult> GetPermissions([FromQuery(Name = "id")] HashSet<Guid> ids)
3536
{
3637
Attempt<IEnumerable<NodePermissions>, UserOperationStatus> permissionsAttempt = await _userService.GetPermissionsAsync(CurrentUserKey(_backOfficeSecurityAccessor), ids.ToArray());

src/Umbraco.Cms.Api.Management/OpenApi.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30050,6 +30050,26 @@
3005030050
}
3005130051
}
3005230052
},
30053+
"404": {
30054+
"description": "Not Found",
30055+
"content": {
30056+
"application/json": {
30057+
"schema": {
30058+
"$ref": "#/components/schemas/ProblemDetails"
30059+
}
30060+
},
30061+
"text/json": {
30062+
"schema": {
30063+
"$ref": "#/components/schemas/ProblemDetails"
30064+
}
30065+
},
30066+
"text/plain": {
30067+
"schema": {
30068+
"$ref": "#/components/schemas/ProblemDetails"
30069+
}
30070+
}
30071+
}
30072+
},
3005330073
"401": {
3005430074
"description": "The resource is protected and requires an authentication token"
3005530075
}

0 commit comments

Comments
 (0)