Skip to content

Commit 5fd446c

Browse files
committed
fix docs
1 parent 49ef5c3 commit 5fd446c

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/routes/auth.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub fn fetch_user(
6868
post,
6969
path = "/auth/login",
7070
responses(
71-
(status = 200, description = "user was successfully authenticated", body = CreateUserResponse),
71+
(status = 200, description = "user was successfully authenticated", body = ResponseLogin),
7272
(status = 500, description = "postgres pool error"),
7373
(status = 400, description = "invalid user data"),
7474
(status = 401, description = "incorrect credentials")
@@ -133,7 +133,7 @@ pub async fn user_login(
133133
post,
134134
path = "/auth/logout",
135135
responses(
136-
(status = 200, description = "returnes old measurements"),
136+
(status = 200, description = "user logged out successfully"),
137137
138138
),
139139
)]
@@ -153,7 +153,7 @@ pub async fn user_logout(
153153
get,
154154
path = "/auth",
155155
responses(
156-
(status = 200, description = "returning user information"),
156+
(status = 200, description = "returning user information", body = AuthorizedUser),
157157
(status = 500, description = "postgres pool error"),
158158
(status = 400, description = "invalid user id")
159159
),

src/routes/correlate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub struct UpdateAllLocationsResponse {
6969
post,
7070
path = "/locations/update_all",
7171
responses(
72-
(status = 200, description = "Correlation Successful", body = CorrelateResponse),
72+
(status = 200, description = "Correlation Successful", body = UpdateAllLocationsResponse),
7373
(status = 401, description = "Unauthorized"),
7474
(status = 403, description = "Forbidden"),
7575
(status = 500, description = "Interal Error"),

src/routes/organization.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ pub async fn orga_create(
137137
content_type = "application/json"
138138
),
139139
responses(
140-
(status = 200, description = "List of organizations was successfully returned", body = Vec<Organization>),
140+
(status = 200, description = "List of organizations was successfully returned", body = ListResponse<Organization>),
141141
(status = 400, description = "Invalid user data"),
142142
(status = 500, description = "Postgres pool error"),
143143
),

src/routes/region.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ pub async fn region_create(
161161
content_type = "application/json"
162162
),
163163
responses(
164-
(status = 200, description = "list of regions", body = Vec<Region>),
164+
(status = 200, description = "list of regions", body = ListResponse<Region>),
165165
(status = 500, description = "postgres pool error"),
166166
),
167167
)]

src/routes/trekkie/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub struct TrekkieRunInfo {
7070
("user_roles" = ["admin", "user"])
7171
),
7272
responses(
73-
(status = 200, description = "list of trekkie runs", body = Vec<TrekkieRun>),
73+
(status = 200, description = "list of trekkie runs", body = ListResponse<TrekkieRun>),
7474
(status = 500, description = "postgres pool error"),
7575
),
7676
)]
@@ -301,7 +301,7 @@ pub async fn trekkie_run_delete(
301301
("user_roles" = ["admin", "user"])
302302
),
303303
responses(
304-
(status = 200, description = "successfully return trekkie run information"),
304+
(status = 200, description = "successfully return trekkie run information", body = TrekkieRunInfo),
305305
(status = 400, description = "invalid input data"),
306306
(status = 403, description = "User doesn't have correct permissions"),
307307
(status = 500, description = "postgres pool error"),

0 commit comments

Comments
 (0)