@@ -68,7 +68,7 @@ pub fn fetch_user(
68
68
post,
69
69
path = "/auth/login" ,
70
70
responses(
71
- ( status = 200 , description = "user was successfully authenticated" , body = CreateUserResponse ) ,
71
+ ( status = 200 , description = "user was successfully authenticated" , body = ResponseLogin ) ,
72
72
( status = 500 , description = "postgres pool error" ) ,
73
73
( status = 400 , description = "invalid user data" ) ,
74
74
( status = 401 , description = "incorrect credentials" )
@@ -133,7 +133,7 @@ pub async fn user_login(
133
133
post,
134
134
path = "/auth/logout" ,
135
135
responses(
136
- ( status = 200 , description = "returnes old measurements " ) ,
136
+ ( status = 200 , description = "user logged out successfully " ) ,
137
137
138
138
) ,
139
139
) ]
@@ -153,7 +153,7 @@ pub async fn user_logout(
153
153
get,
154
154
path = "/auth" ,
155
155
responses(
156
- ( status = 200 , description = "returning user information" ) ,
156
+ ( status = 200 , description = "returning user information" , body = AuthorizedUser ) ,
157
157
( status = 500 , description = "postgres pool error" ) ,
158
158
( status = 400 , description = "invalid user id" )
159
159
) ,
0 commit comments