aboutsummaryrefslogtreecommitdiff
path: root/src/routes
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2024-07-01 16:16:19 +0200
committerfxqnlr <[email protected]>2024-07-01 16:16:19 +0200
commit596def095af65b0818467038a21e7a6b08dfed9f (patch)
tree3f8c70043dd7487ed080a055d4eff7c5439a0d02 /src/routes
parente3752e54cb0e77128a2c2583c23ddaa312d38a5f (diff)
downloadwebol-596def095af65b0818467038a21e7a6b08dfed9f.tar
webol-596def095af65b0818467038a21e7a6b08dfed9f.tar.gz
webol-596def095af65b0818467038a21e7a6b08dfed9f.zip
fix swagger `DeviceSchema not found` error
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/device.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/device.rs b/src/routes/device.rs
index f767eab..6f1c371 100644
--- a/src/routes/device.rs
+++ b/src/routes/device.rs
@@ -44,7 +44,7 @@ pub struct DPayload {
44 path = "/device", 44 path = "/device",
45 request_body = DPayload, 45 request_body = DPayload,
46 responses( 46 responses(
47 (status = 200, description = "add device to storage", body = [DeviceSchema]) 47 (status = 200, description = "add device to storage", body = [Device])
48 ), 48 ),
49 security((), ("api_key" = [])) 49 security((), ("api_key" = []))
50)] 50)]
@@ -77,7 +77,7 @@ pub async fn put(Json(payload): Json<DPayload>) -> Result<Json<Value>, Error> {
77 path = "/device", 77 path = "/device",
78 request_body = DPayload, 78 request_body = DPayload,
79 responses( 79 responses(
80 (status = 200, description = "update device in storage", body = [DeviceSchema]) 80 (status = 200, description = "update device in storage", body = [Device])
81 ), 81 ),
82 security((), ("api_key" = [])) 82 security((), ("api_key" = []))
83)] 83)]