package Ġcom . k ost as dr ak on ak is . notes . network . api Ċ Ċ import Ġcom . k ost as dr ak on ak is . notes . network . model . Note Ċ import Ġcom . k ost as dr ak on ak is . notes . network . model . Note Body Ċ import Ġio . reactivex . Comp letable Ċ import Ġio . reactivex . Single Ċ import Ġretrofit 2 . http . Body Ċ import Ġretrofit 2 . http . DELETE Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . Headers Ċ import Ġretrofit 2 . http . POST Ċ import Ġretrofit 2 . http . PUT Ċ import Ġretrofit 2 . http . Path Ċ Ċ interface ĠNotes Api Ġ{ ĊĊĠĠĠ Ġ@ POST (" notes ") ĊĠĠĠ Ġ@ Headers (" Content - type : Ġapplication / json ") ĊĠĠĠ Ġfun Ġcreate Note (@ Body Ġbody : ĠNote Body ): ĠSingle < Note > ĊĊĠĠĠ Ġ@ GET (" notes ") ĊĠĠĠ Ġ@ Headers (" Content - type : Ġapplication / json ") ĊĠĠĠ Ġfun Ġget Notes (): ĠSingle < List < Note >> ĊĊĠĠĠ Ġ@ PUT (" notes /{ id }") ĊĠĠĠ Ġ@ Headers (" Content - type : Ġapplication / json ") ĊĠĠĠ Ġfun Ġedit Note (@ Path (" id ") Ġid : ĠInt ): ĠSingle < Note > ĊĊĠĠĠ Ġ@ DELETE (" notes /{ id }") ĊĠĠĠ Ġ@ Headers (" Content - type : Ġapplication / json ") ĊĠĠĠ Ġfun Ġdelete Note (@ Path (" id ") Ġid : ĠInt ): ĠComp letable ĊĊĠĠĠ Ġ@ GET (" notes /{ id }") ĊĠĠĠ Ġ@ Headers (" Content - type : Ġapplication / json ") ĊĠĠĠ Ġfun Ġget Note (@ Path (" id ") Ġid : ĠInt ): ĠSingle < Note > Ċ }