and call its methods. It will use the annotations to validate the call client side before sending it, and you can implement the same interface on the server:
@Controller("/pets")
public class PetController implements PetOperations {
@Override
@SingleResult
public Publisher<Pet> save(String name, int age) {
Pet pet = new Pet();
pet.setName(name);
pet.setAge(age);
// save to database or something
return Mono.just(pet);
}
}
where the same validations will occur before the call is accepted.