Skip to content

Commit

Permalink
[api] Fix incorrect method in user remove endpoint spec #1475 (#1476)
Browse files Browse the repository at this point in the history
* Update user.rs

* fix method
  • Loading branch information
michaelvlach authored Jan 11, 2025
1 parent 426dd68 commit 000756f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion agdb_api/php/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Class | Method | HTTP request | Description
*AgdbApi* | [**dbRestore**](docs/Api/AgdbApi.md#dbrestore) | **POST** /api/v1/db/{owner}/{db}/restore |
*AgdbApi* | [**dbUserAdd**](docs/Api/AgdbApi.md#dbuseradd) | **PUT** /api/v1/db/{owner}/{db}/user/{username}/add |
*AgdbApi* | [**dbUserList**](docs/Api/AgdbApi.md#dbuserlist) | **GET** /api/v1/db/{owner}/{db}/user/list |
*AgdbApi* | [**dbUserRemove**](docs/Api/AgdbApi.md#dbuserremove) | **POST** /api/v1/db/{owner}/{db}/user/{username}/remove |
*AgdbApi* | [**dbUserRemove**](docs/Api/AgdbApi.md#dbuserremove) | **DELETE** /api/v1/db/{owner}/{db}/user/{username}/remove |
*AgdbApi* | [**status**](docs/Api/AgdbApi.md#status) | **GET** /api/v1/status |
*AgdbApi* | [**userChangePassword**](docs/Api/AgdbApi.md#userchangepassword) | **PUT** /api/v1/user/change_password |
*AgdbApi* | [**userLogin**](docs/Api/AgdbApi.md#userlogin) | **POST** /api/v1/user/login |
Expand Down
2 changes: 1 addition & 1 deletion agdb_api/php/docs/Api/AgdbApi.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion agdb_api/php/lib/Api/AgdbApi.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion agdb_api/typescript/src/openapi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3136,7 +3136,7 @@ export interface PathsDictionary {
/**
* db_user_remove
*/
'post'(
'delete'(
parameters?: Parameters<Paths.DbUserRemove.PathParameters> | null,
data?: any,
config?: AxiosRequestConfig
Expand Down
2 changes: 1 addition & 1 deletion agdb_server/openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion agdb_server/src/routes/db/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub(crate) async fn list(
Ok((StatusCode::OK, Json(server_db.db_users(db_id).await?)))
}

#[utoipa::path(post,
#[utoipa::path(delete,
path = "/api/v1/db/{owner}/{db}/user/{username}/remove",
operation_id = "db_user_remove",
tag = "agdb",
Expand Down

0 comments on commit 000756f

Please sign in to comment.