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

Commit 6784152

Browse files
committed
admin: add operation ID on user add operation
1 parent dacb59b commit 6784152

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 Payload {
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.schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@
173173
"user"
174174
],
175175
"summary": "Create a new user",
176+
"operationId": "createUser",
176177
"requestBody": {
177178
"content": {
178179
"application/json": {

0 commit comments

Comments
 (0)