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

Commit

Permalink
admin: add operation ID on user add operation
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhose committed Aug 1, 2024
1 parent 5833f1a commit 65f1c45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/handlers/src/admin/v1/users/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ pub struct Request {

pub fn doc(operation: TransformOperation) -> TransformOperation {
operation
.id("createUser")
.summary("Create a new user")
.tag("user")
.response_with::<200, Json<SingleResponse<User>>, _>(|t| {
Expand Down
1 change: 1 addition & 0 deletions docs/api/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
"user"
],
"summary": "Create a new user",
"operationId": "createUser",
"requestBody": {
"content": {
"application/json": {
Expand Down

0 comments on commit 65f1c45

Please sign in to comment.