package Ġcom . al my y . class room se ater . controller Ċ Ċ import Ġcom . al my y . class room se ater . domain . Class room Ċ import Ġcom . al my y . class room se ater . domain . Student Ċ import Ġorg . springframework . web . bind . annotation . RequestMapping Ċ import Ġorg . springframework . web . bind . annotation . Request Method Ċ import Ġorg . springframework . web . bind . annotation . RestController Ċ Ċ @ RestController Ċ class ĠStudent Controller () Ġ{ ĊĊĠĠĠ Ġ@ RequestMapping ("/ student ", Ġmethod Ġ= ĠarrayOf ( Request Method . GET )) ĊĠĠĠ Ġfun Ġstudent (): ĠList < Student > Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġclass room Ġ= ĠClass room () ĊĠĠĠĠĠĠĠ Ġreturn Ġclass room . students ĊĠĠĠ Ġ} Ċ }