diff options
author | FxQnLr <[email protected]> | 2024-07-02 12:09:07 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-07-02 12:09:07 +0000 |
commit | e4a1dac094556f0a4000b429897402facc09e03f (patch) | |
tree | 188dca378acb57dc7367216d10e38f4bf180d75b /src/routes/device.rs | |
parent | e3752e54cb0e77128a2c2583c23ddaa312d38a5f (diff) | |
parent | c0ac2f659a9a9af2833549f1f6b7300e3d1d2453 (diff) | |
download | webol-e4a1dac094556f0a4000b429897402facc09e03f.tar webol-e4a1dac094556f0a4000b429897402facc09e03f.tar.gz webol-e4a1dac094556f0a4000b429897402facc09e03f.zip |
Merge pull request #40 from FxQnLr/fix_swagger_device
Fix swagger-ui device schema error
Diffstat (limited to 'src/routes/device.rs')
-rw-r--r-- | src/routes/device.rs | 4 |
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 | )] |