Skip to content

Commit 156fe4a

Browse files
committed
Improve OpenAPI documentation for DELETE /api/v1/me/tokens/{id} endpoint
1 parent 6f16abf commit 156fe4a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/controllers/token.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ pub async fn find_api_token(
242242
("cookie" = []),
243243
),
244244
tag = "api_tokens",
245-
responses((status = 200, description = "Successful Response")),
245+
responses((status = 200, description = "Successful Response", body = Object)),
246246
)]
247247
pub async fn revoke_api_token(
248248
app: AppState,

src/snapshots/crates_io__openapi__tests__openapi_snapshot.snap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3733,6 +3733,13 @@ expression: response.json()
37333733
],
37343734
"responses": {
37353735
"200": {
3736+
"content": {
3737+
"application/json": {
3738+
"schema": {
3739+
"type": "object"
3740+
}
3741+
}
3742+
},
37363743
"description": "Successful Response"
37373744
}
37383745
},

0 commit comments

Comments
 (0)