diff --git a/rust/agama-server/src/server/web.rs b/rust/agama-server/src/server/web.rs index df81ca7723..6bcbb701d8 100644 --- a/rust/agama-server/src/server/web.rs +++ b/rust/agama-server/src/server/web.rs @@ -210,12 +210,10 @@ async fn get_config(State(state): State) -> ServerResult, Json(json): Json) -> ServerResult<()> { @@ -232,12 +230,10 @@ async fn put_config(State(state): State, Json(json): Json) - patch, path = "/config", context_path = "/api/v2", + request_body(content = Patch, description = "Changes in the configuration."), responses( (status = 200, description = "The configuration was patched. Other operations can be running in background."), (status = 400, description = "Not possible to patch the configuration.") - ), - params( - ("patch" = Patch, description = "Changes in the configuration.") ) )] async fn patch_config( @@ -410,13 +406,11 @@ async fn get_license( post, path = "/action", context_path = "/api/v2", + request_body(content = Action, description = "Description of the action to run."), responses( (status = 200, description = "Action successfully ran."), (status = 400, description = "Not possible to run the action.", body = Object), (status = 422, description = "Action blocked by backend state", body = Object) - ), - params( - ("action" = Action, description = "Description of the action to run."), ) )] async fn run_action( diff --git a/rust/package/agama.changes b/rust/package/agama.changes index 641bc1d853..63b90aaeae 100644 --- a/rust/package/agama.changes +++ b/rust/package/agama.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Mar 20 07:54:46 UTC 2026 - Knut Anderssen + +- Fix incorrect openAPI parameters (gh#agama-project/agama#3299). + - Do not define params for POST '/api/v2/action' + - Do not define params for PUT and PATCH '/api/v2/config + ------------------------------------------------------------------- Thu Mar 19 21:11:29 UTC 2026 - Imobach Gonzalez Sosa