package Ġcom . lost things . data . service Ċ Ċ import Ġcom . lost things . data . service . model . Item Model Ċ import Ġcom . lost things . data . service . model . Item Return Model Ċ import Ġcom . lost things . data . service . model . Item ToAdd Model Ċ import Ġio . reactivex . Single Ċ import Ġretrofit 2 . http .* Ċ Ċ interface ĠItem Api Ġ{ ĊĊĠĠĠ Ġ@ GET ("/ things ") ĊĠĠĠ Ġfun Ġget Items (): ĠSingle < List < Item Model >> ĊĊĠĠĠ Ġ@ Headers (" Content - Type : Ġapplication / json ") ĊĠĠĠ Ġ@ POST ("/ things ") ĊĠĠĠ Ġfun Ġadd Item (@ Body Ġitem ToAdd Model : ĠItem ToAdd Model ): ĠSingle < List < Item Model >> ĊĊĠĠĠ Ġ@ Headers (" Content - Type : Ġapplication / json ") ĊĠĠĠ Ġ@ PATCH ("/ things ") ĊĠĠĠ Ġfun Ġchange Item (@ Body Ġitem Model : ĠItem Model ): ĠSingle < List < Item Model >> Ċ } Ċ