package Ġcom . pe tp oo ja . store . data . api . live Ċ Ċ import Ġcom . pe tp oo ja . store . domain . entities . Product Ċ import Ġretrofit 2 . Response Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . Path Ċ import Ġjavax . inject . Singleton ĊĊ Ċ @ Singleton Ċ interface ĠAPI Services Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠGET _ PRODUCT S : ĠString Ġ= Ġ(" products ") ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠGET _ CATEGORY : ĠString Ġ= Ġ(" products / categories ") ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠGET _ CATEGORY _ PRODUCT : ĠString Ġ= Ġ(" products / category ") ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ GET ( GET _ PRODUCT S ) ĊĠĠĠ Ġsuspend Ġfun Ġget Products (): ĠResponse < List < Product >> ĊĊĠĠĠ Ġ@ GET ( GET _ CATEGORY _ PRODUCT +" /{ category }") ĊĠĠĠ Ġsuspend Ġfun Ġget Category Products (@ Path ( value Ġ= Ġ" category ") Ġcategory : ĠString ): ĠResponse < List < Product >> ĊĊĠĠĠ Ġ@ GET ( GET _ CATEGORY ) ĊĠĠĠ Ġsuspend Ġfun Ġget Category (): ĠResponse < ArrayList < String >> Ċ Ċ }