package Ġbr . com . z up academy . gab riel . list Ċ Ċ import Ġbr . com . z up academy . Key Manager List Service Grpc Ċ import Ġbr . com . z up academy . List Pix Key Request Ċ import Ġio . mic ronaut . http . HttpResponse Ċ import Ġio . mic ronaut . http . annotation . Controller Ċ import Ġio . mic ronaut . http . annotation . Get Ċ import Ġio . mic ronaut . http . annotation . PathVariable Ċ import Ġjavax . inject . Inject Ċ Ċ @ Controller ("/ clients /{ clientId }/ pix / keys ") Ċ class ĠList Key Controller (@ Inject Ġval Ġclient Grpc : ĠKey Manager List Service Grpc . Key Manager List Service Blocking Stub ) Ġ{ ĊĊĠĠĠ Ġ@ Get ĊĠĠĠ Ġfun Ġlist Ġ(@ PathVariable ĠclientId : ĠString ): ĠHttpResponse < List < List Key Details Response >> Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġrequest Ġ= ĠList Pix Key Request . newBuilder (). set ClientId ( clientId ). build () ĊĠĠĠĠĠĠĠ Ġval Ġresponse Ġ= Ġclient Grpc . list Keys ( request ) ĊĊĠĠĠĠĠĠĠ Ġval Ġlist Key Details : ĠList < List Key Details Response > Ġ= Ġresponse . list Pix Key List . map Ġ{ ĠList Key Details Response ( it )} ĊĠĠĠĠĠĠĠ Ġreturn ĠHttpResponse . ok ( list Key Details ) ĊĠĠĠ Ġ} Ċ }