Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit 65f1c45

Browse files
committed
admin: add operation ID on user add operation
1 parent 5833f1a commit 65f1c45

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

crates/handlers/src/admin/v1/users/add.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ pub struct Request {
114114

115115
pub fn doc(operation: TransformOperation) -> TransformOperation {
116116
operation
117+
.id("createUser")
117118
.summary("Create a new user")
118119
.tag("user")
119120
.response_with::<200, Json<SingleResponse<User>>, _>(|t| {

docs/api/spec.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@
165165
"user"
166166
],
167167
"summary": "Create a new user",
168+
"operationId": "createUser",
168169
"requestBody": {
169170
"content": {
170171
"application/json": {

0 commit comments

Comments
 (0)