Код: Выделить всё
@PatchMapping("/branches")
public MicApiResponse updateForManyBranches(
@RequestBody List req) throws MicClientException {
service.updateForManyBranches(req);
return MicApiResponse.succeed();
}
Код: Выделить всё
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class RepresentativeForManyBranchesRequest {
@Valid
private RepresentativeUserForManyBranchesRequest representativeUsers;
}
Код: Выделить всё
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class RepresentativeUserForManyBranchesRequest {
private String id;
@Required
private String userId;
@Required
@Length(min = 1, max = 100)
private String name;
@Required
@Length(min = 1, max = 100)
private String position;}
Подробнее здесь: https://stackoverflow.com/questions/790 ... t-to-reque