mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 09:48:44 +00:00
Alright should fix the generation now...
This commit is contained in:
1 parent
43b6808f23
commit
f4176bf84a
4 files changed
+4
-4
No files matched your search
+1
-1
@@ -76,7 +76,7 @@ impl fmt::Display for DeleteWeightError {
|
||||
|
||||
#[utoipa::path(
|
||||
delete,
|
||||
path = "/weight/{weight_token}",
|
||||
path = "/v1/weights/weight/{weight_token}",
|
||||
responses(
|
||||
(status = 200, description = "Success Delete", body = SimpleGenericJsonSuccess),
|
||||
(status = 400, description = "Bad input", body = DeleteWeightError),
|
||||
|
||||
@@ -75,7 +75,7 @@ impl ResponseError for GetWeightError {
|
||||
}
|
||||
#[utoipa::path(
|
||||
get,
|
||||
path = "/weight/{weight_token}",
|
||||
path = "/v1/weights/weight/{weight_token}",
|
||||
responses(
|
||||
(status = 200, description = "Success Update", body = GetWeightResponse),
|
||||
(status = 400, description = "Bad input", body = GetWeightError),
|
||||
|
||||
+1
-1
@@ -106,7 +106,7 @@ impl ResponseError for ListWeightError {
|
||||
|
||||
#[utoipa::path(
|
||||
get,
|
||||
path = "/list/",
|
||||
path = "/v1/weights/list/",
|
||||
responses(
|
||||
(status = 200, description = "List Weights", body = ListAvailableWeightsSuccessResponse),
|
||||
(status = 401, description = "Not authorized", body = ListWeightError),
|
||||
|
||||
+1
-1
@@ -74,7 +74,7 @@ impl fmt::Display for UpdateWeightError {
|
||||
// =============== Handler ===============
|
||||
#[utoipa::path(
|
||||
post,
|
||||
path = "/weight/{weight_token}",
|
||||
path = "/v1/weights/weight/{weight_token}",
|
||||
responses(
|
||||
(status = 200, description = "Success Update", body = SimpleGenericJsonSuccess),
|
||||
(status = 400, description = "Bad input", body = UpdateWeightError),
|
||||
|
||||
Reference in new issue
Block a user