Skip to content

Commit fb674e4

Browse files
committed
OpenAPI: Adjust DELETE /api/v1/trusted_publishing/tokens security scheme usage
This endpoint requires a Trusted Publishing token, so let's document it accordingly.
1 parent c8488f7 commit fb674e4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/controllers/trustpub/tokens/revoke/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ mod tests;
1616
#[utoipa::path(
1717
delete,
1818
path = "/api/v1/trusted_publishing/tokens",
19+
security(("trustpub_token" = [])),
1920
tag = "trusted_publishing",
2021
responses((status = 204, description = "Successful Response")),
2122
)]

src/snapshots/crates_io__openapi__tests__openapi_snapshot.snap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4315,6 +4315,11 @@ expression: response.json()
43154315
"description": "Successful Response"
43164316
}
43174317
},
4318+
"security": [
4319+
{
4320+
"trustpub_token": []
4321+
}
4322+
],
43184323
"summary": "Revoke a temporary access token.",
43194324
"tags": [
43204325
"trusted_publishing"

0 commit comments

Comments
 (0)