aboutsummaryrefslogtreecommitdiff
path: root/src/routes/start.rs
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2024-04-09 14:41:15 +0200
committerFxQnLr <[email protected]>2024-04-09 14:41:15 +0200
commit25492f14292afc0fbfd442cd188bc93ffc3d293e (patch)
tree7289b06b79fbd2e25cbce2d4412c3390c8a12bf2 /src/routes/start.rs
parenta91a2ca5c88403e905bf0f798393587fc4d900fa (diff)
downloadwebol-25492f14292afc0fbfd442cd188bc93ffc3d293e.tar
webol-25492f14292afc0fbfd442cd188bc93ffc3d293e.tar.gz
webol-25492f14292afc0fbfd442cd188bc93ffc3d293e.zip
Closes #21. Api desc are useful now...
Diffstat (limited to 'src/routes/start.rs')
-rw-r--r--src/routes/start.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/routes/start.rs b/src/routes/start.rs
index e74a943..ff3d1be 100644
--- a/src/routes/start.rs
+++ b/src/routes/start.rs
@@ -16,7 +16,7 @@ use uuid::Uuid;
16 path = "/start", 16 path = "/start",
17 request_body = PayloadOld, 17 request_body = PayloadOld,
18 responses( 18 responses(
19 (status = 200, description = "List matching todos by query", body = [Response]) 19 (status = 200, description = "DEP", body = [Response])
20 ), 20 ),
21 security((), ("api_key" = [])) 21 security((), ("api_key" = []))
22)] 22)]
@@ -65,10 +65,10 @@ pub async fn start_payload(
65 path = "/start/{id}", 65 path = "/start/{id}",
66 request_body = Option<Payload>, 66 request_body = Option<Payload>,
67 responses( 67 responses(
68 (status = 200, description = "Start the device with the given id", body = [Response]) 68 (status = 200, description = "start the device with the given id", body = [Response])
69 ), 69 ),
70 params( 70 params(
71 ("id" = String, Path, description = "Device id") 71 ("id" = String, Path, description = "device id")
72 ), 72 ),
73 security((), ("api_key" = [])) 73 security((), ("api_key" = []))
74)] 74)]
@@ -84,10 +84,10 @@ pub async fn post(
84 get, 84 get,
85 path = "/start/{id}", 85 path = "/start/{id}",
86 responses( 86 responses(
87 (status = 200, description = "Start the device with the given id", body = [Response]) 87 (status = 200, description = "start the device with the given id", body = [Response])
88 ), 88 ),
89 params( 89 params(
90 ("id" = String, Path, description = "Device id") 90 ("id" = String, Path, description = "device id")
91 ), 91 ),
92 security((), ("api_key" = [])) 92 security((), ("api_key" = []))
93)] 93)]