-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Synchronize getEmployeeAvailableEarlier between the server and client #44
Conversation
b3fc409
to
cd32543
Compare
@@ -36,7 +36,7 @@ interface EmployeeServiceClient { | |||
|
|||
@Throws(NotFoundException::class) | |||
@RequestLine("GET employees/available-earlier?employees={employees}", collectionFormat = CollectionFormat.CSV) | |||
fun getEmployeeAvailableEarlier(@Param("employees") @QueryMap employees: List<String>): Employee | |||
fun getEmployeeAvailableEarlier(@Param("employees") employees: Set<String>): Employee |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
контрак поменяется в отношениях клиент/сервер: Тут не зря collectionFormat.CSV еще проставлен (нельзя просто взять и убрать @QueryMap)
@@ -45,7 +45,7 @@ class ClassicEmployeeServiceClient( | |||
|
|||
override fun getEmployee(employee: String): Employee = client.getEmployee(employee) | |||
|
|||
override fun getEmployeeAvailableEarlier(employees: List<String>): Employee = | |||
override fun getEmployeeAvailableEarlier(employees: Set<String>): Employee = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А ради чего мы коллекции меняем?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
На сервере Set. Должно быть синхронно
#43