package Ġcom . nl w . four . api . controller Ċ Ċ import Ġcom . nl w . four . domain . model . Survey Ċ import Ġcom . nl w . four . domain . service . Create Survey Service Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . http . HttpStatus Ċ import Ġorg . springframework . web . bind . annotation .* Ċ import Ġjavax . validation . Valid Ċ Ċ @ RestController Ċ @ RequestMapping ("/ sur veys ") Ċ class ĠCreate Survey Controller ( ĊĠĠĠ Ġ@ Autowired Ġprivate Ġval Ġcreate Survey Service : ĠCreate Survey Service , Ċ ) Ġ{ ĊĊĠĠĠ Ġ@ PostMapping ĊĠĠĠ Ġ@ ResponseStatus ( HttpStatus . CREATED ) ĊĠĠĠ Ġfun Ġcreate Survey (@ Valid Ġ@ RequestBody Ġsurvey : ĠSurvey ?): ĠSurvey ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġcreate Survey Service . create ( survey ) ĊĠĠĠ Ġ} Ċ }