@@ -21,14 +21,14 @@ import org.openapitools.client.models.*
2121
2222trait UserApiEndpoints [F [* ]] {
2323
24- def createUser (user : User , auth : _Authorization.ApiKey ): F [Unit ]
25- def createUsersWithArrayInput (user : Seq [User ], auth : _Authorization.ApiKey ): F [Unit ]
26- def createUsersWithListInput (user : Seq [User ], auth : _Authorization.ApiKey ): F [Unit ]
27- def deleteUser (username : String , 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 ]
2828 def getUserByName (username : String ): F [User ]
2929 def loginUser (username : String , password : String ): F [String ]
30- def logoutUser (auth : _Authorization.ApiKey ): F [Unit ]
31- def updateUser (username : String , user : User , 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 ]
3232
3333}
3434
@@ -42,7 +42,7 @@ class UserApiEndpointsImpl[F[*]: Concurrent](
4242 import io .circe .syntax .EncoderOps
4343 import cats .implicits .toFlatMapOps
4444
45- override def createUser (user : User , auth : _Authorization.ApiKey ): F [Unit ] = {
45+ override def createUser (user : User )( using auth : _Authorization.ApiKey ): F [Unit ] = {
4646 val requestHeaders = Seq (
4747 Some (" Content-Type" -> " application/json" )
4848 ).flatten
@@ -59,7 +59,7 @@ class UserApiEndpointsImpl[F[*]: Concurrent](
5959 }
6060 }
6161
62- override def createUsersWithArrayInput (user : Seq [User ], auth : _Authorization.ApiKey ): F [Unit ] = {
62+ override def createUsersWithArrayInput (user : Seq [User ])( using auth : _Authorization.ApiKey ): F [Unit ] = {
6363 val requestHeaders = Seq (
6464 Some (" Content-Type" -> " application/json" )
6565 ).flatten
@@ -76,7 +76,7 @@ class UserApiEndpointsImpl[F[*]: Concurrent](
7676 }
7777 }
7878
79- override def createUsersWithListInput (user : Seq [User ], auth : _Authorization.ApiKey ): F [Unit ] = {
79+ override def createUsersWithListInput (user : Seq [User ])( using auth : _Authorization.ApiKey ): F [Unit ] = {
8080 val requestHeaders = Seq (
8181 Some (" Content-Type" -> " application/json" )
8282 ).flatten
@@ -93,7 +93,7 @@ class UserApiEndpointsImpl[F[*]: Concurrent](
9393 }
9494 }
9595
96- override def deleteUser (username : String , auth : _Authorization.ApiKey ): F [Unit ] = {
96+ override def deleteUser (username : String )( using auth : _Authorization.ApiKey ): F [Unit ] = {
9797 val requestHeaders = Seq (
9898 Some (" Content-Type" -> " application/json" )
9999 ).flatten
@@ -155,7 +155,7 @@ class UserApiEndpointsImpl[F[*]: Concurrent](
155155 }
156156 }
157157
158- override def logoutUser (auth : _Authorization.ApiKey ): F [Unit ] = {
158+ override def logoutUser ()( using auth : _Authorization.ApiKey ): F [Unit ] = {
159159 val requestHeaders = Seq (
160160 Some (" Content-Type" -> " application/json" )
161161 ).flatten
@@ -172,7 +172,7 @@ class UserApiEndpointsImpl[F[*]: Concurrent](
172172 }
173173 }
174174
175- override def updateUser (username : String , user : User , auth : _Authorization.ApiKey ): F [Unit ] = {
175+ override def updateUser (username : String , user : User )( using auth : _Authorization.ApiKey ): F [Unit ] = {
176176 val requestHeaders = Seq (
177177 Some (" Content-Type" -> " application/json" )
178178 ).flatten
0 commit comments