package Ġcom . example . api Ċ Ċ import Ġcom . example . api . request . Cliente Cri ar Request Ċ import Ġcom . example . api . response . Cliente Response Ċ import Ġorg . springframework . http . MediaType Ċ import Ġorg . springframework . http . Response Entity Ċ import Ġorg . springframework . web . bind . annotation .* Ċ import Ġjavax . validation . Valid Ċ Ċ @ RequestMapping ( pro duces Ġ= Ġ[ MediaType . APPLICATION _ JSON _ VALUE ]) Ċ interface ĠCliente Api Ġ{ ĊĊĠĠĠ Ġ@ GetMapping ( value Ġ= Ġ["/ cliente /{ id }" ]) ĊĠĠĠ Ġfun Ġmostrar Cliente (@ PathVariable (" id ") Ġid : ĠString ): ĠResponseEntity < Cliente Response > ĊĊĠĠĠ Ġ@ PostMapping ( value Ġ= Ġ["/ cri ar - cliente "]) ĊĠĠĠ Ġfun Ġcriar Cliente (@ Valid Ġ@ RequestBody Ġcliente Cri ar Request : ĠCliente Cri ar Request ): ĠResponseEntity < Cliente Response > Ċ }