package Ġcom . an and . ind ust ries . kot ling raph ql . rest Ċ Ċ import Ġcom . an and . ind ust ries . kot ling raph ql . rest . service . Author Service Ċ import Ġorg . springframework . web . bind . annotation . GetMapping Ċ import Ġorg . springframework . web . bind . annotation . PathVariable Ċ import Ġorg . springframework . web . bind . annotation . RestController Ċ import Ġcom . an and . ind ust ries . kot ling raph ql . model . Author Ġas ĠAuthor Model Ċ Ċ @ RestController Ċ class ĠAuthor Controller ( private Ġval Ġauthor Service : ĠAuthor Service ) Ġ{ ĊĊĠĠĠ Ġ@ GetMapping ("/ authors /{ id }") ĊĠĠĠ Ġfun Ġget Authors (@ PathVariable (" id ") Ġid : ĠInt ): ĠAuthor Model Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval Ġauthor Ġ= Ġauthor Service . get Author ById ( id ) ĊĠĠĠĠĠĠĠ Ġreturn Ġauthor ĊĠĠĠ Ġ} Ċ } ĊĊ