@@ -21,14 +21,14 @@ import org.openapitools.client.models.*
21
21
22
22
trait UserApiEndpoints [F [* ]] {
23
23
24
- def createUser (user : User )(implicit auth : _Authorization.ApiKey ): F [Unit ]
25
- def createUsersWithArrayInput (user : Seq [User ])(implicit auth : _Authorization.ApiKey ): F [Unit ]
26
- def createUsersWithListInput (user : Seq [User ])(implicit auth : _Authorization.ApiKey ): F [Unit ]
27
- def deleteUser (username : String )(implicit auth : _Authorization.ApiKey ): F [Unit ]
24
+ def createUser (user : User )(using auth : _Authorization.ApiKey ): F [Unit ]
25
+ def createUsersWithArrayInput (user : Seq [User ])(using auth : _Authorization.ApiKey ): F [Unit ]
26
+ def createUsersWithListInput (user : Seq [User ])(using auth : _Authorization.ApiKey ): F [Unit ]
27
+ def deleteUser (username : String )(using auth : _Authorization.ApiKey ): F [Unit ]
28
28
def getUserByName (username : String ): F [User ]
29
29
def loginUser (username : String , password : String ): F [String ]
30
- def logoutUser ()(implicit auth : _Authorization.ApiKey ): F [Unit ]
31
- def updateUser (username : String , user : User )(implicit auth : _Authorization.ApiKey ): F [Unit ]
30
+ def logoutUser ()(using auth : _Authorization.ApiKey ): F [Unit ]
31
+ def updateUser (username : String , user : User )(using auth : _Authorization.ApiKey ): F [Unit ]
32
32
33
33
}
34
34
@@ -42,7 +42,7 @@ class UserApiEndpointsImpl[F[*]: Concurrent](
42
42
import io .circe .syntax .EncoderOps
43
43
import cats .implicits .toFlatMapOps
44
44
45
- override def createUser (user : User )(implicit auth : _Authorization.ApiKey ): F [Unit ] = {
45
+ override def createUser (user : User )(using auth : _Authorization.ApiKey ): F [Unit ] = {
46
46
val requestHeaders = Seq (
47
47
Some (" Content-Type" -> " application/json" )
48
48
).flatten
@@ -59,7 +59,7 @@ class UserApiEndpointsImpl[F[*]: Concurrent](
59
59
}
60
60
}
61
61
62
- override def createUsersWithArrayInput (user : Seq [User ])(implicit auth : _Authorization.ApiKey ): F [Unit ] = {
62
+ override def createUsersWithArrayInput (user : Seq [User ])(using auth : _Authorization.ApiKey ): F [Unit ] = {
63
63
val requestHeaders = Seq (
64
64
Some (" Content-Type" -> " application/json" )
65
65
).flatten
@@ -76,7 +76,7 @@ class UserApiEndpointsImpl[F[*]: Concurrent](
76
76
}
77
77
}
78
78
79
- override def createUsersWithListInput (user : Seq [User ])(implicit auth : _Authorization.ApiKey ): F [Unit ] = {
79
+ override def createUsersWithListInput (user : Seq [User ])(using auth : _Authorization.ApiKey ): F [Unit ] = {
80
80
val requestHeaders = Seq (
81
81
Some (" Content-Type" -> " application/json" )
82
82
).flatten
@@ -93,7 +93,7 @@ class UserApiEndpointsImpl[F[*]: Concurrent](
93
93
}
94
94
}
95
95
96
- override def deleteUser (username : String )(implicit auth : _Authorization.ApiKey ): F [Unit ] = {
96
+ override def deleteUser (username : String )(using auth : _Authorization.ApiKey ): F [Unit ] = {
97
97
val requestHeaders = Seq (
98
98
Some (" Content-Type" -> " application/json" )
99
99
).flatten
@@ -155,7 +155,7 @@ class UserApiEndpointsImpl[F[*]: Concurrent](
155
155
}
156
156
}
157
157
158
- override def logoutUser ()(implicit auth : _Authorization.ApiKey ): F [Unit ] = {
158
+ override def logoutUser ()(using auth : _Authorization.ApiKey ): F [Unit ] = {
159
159
val requestHeaders = Seq (
160
160
Some (" Content-Type" -> " application/json" )
161
161
).flatten
@@ -172,7 +172,7 @@ class UserApiEndpointsImpl[F[*]: Concurrent](
172
172
}
173
173
}
174
174
175
- override def updateUser (username : String , user : User )(implicit auth : _Authorization.ApiKey ): F [Unit ] = {
175
+ override def updateUser (username : String , user : User )(using auth : _Authorization.ApiKey ): F [Unit ] = {
176
176
val requestHeaders = Seq (
177
177
Some (" Content-Type" -> " application/json" )
178
178
).flatten
0 commit comments