package Ġcom . mat t . auth interceptor . sample . api Ċ Ċ import Ġcom . google . gson . JsonArray Ċ import Ġcom . google . gson . JsonObject Ċ import Ġcom . mat t . auth interceptor . Header Ċ import Ġcom . mat t . auth interceptor . sample . api . data . Credentials Ċ import Ġcom . mat t . auth interceptor . sample . api . data . Profile Ċ import Ġokhttp 3 . Multipart Body Ċ import Ġretrofit 2 . Call Ċ import Ġretrofit 2 . http .* ĊĊ Ċ interface ĠRest ApiService Ġ{ ĊĊĠĠĠ Ġ@ GET (" profile ") ĊĠĠĠ Ġfun Ġuser Profile (): ĠCall < Profile > ĊĊĠĠĠ Ġ@ POST (" profile ") ĊĠĠĠ Ġ@ Headers ( Header . NO _ AUTH ) ĊĠĠĠ Ġfun Ġsign Up (@ Body Ġcredentials : ĠCredentials ): ĠCall < Profile > ĊĊĠĠĠ Ġ@ Multipart ĊĠĠĠ Ġ@ POST (" attachment ") ĊĠĠĠ Ġ@ Headers ( Header . NO _ AUTH ) ĊĠĠĠ Ġfun Ġupload Attachment As User (@ Part Ġfile : ĠMultip art Body . Part ): ĠCall < JsonObject > ĊĊĠĠĠ Ġ@ Multipart ĊĠĠĠ Ġ@ POST (" attachment ") ĊĠĠĠ Ġfun Ġupload Attachment As Guest (@ Part Ġfile : ĠMultip art Body . Part ): ĠCall < JsonObject > ĊĊĠĠĠ Ġ@ GET (" users ") ĊĠĠĠ Ġfun Ġget Users Default (): ĠCall < JsonArray > ĊĊĠĠĠ Ġ@ GET (" users ") ĊĠĠĠ Ġ@ Headers ( Header . AUTH ) ĊĠĠĠ Ġfun Ġget Users Auth (): ĠCall < JsonArray > ĊĊĠĠĠ Ġ@ GET (" users ") ĊĠĠĠ Ġ@ Headers ( Header . NO _ AUTH ) ĊĠĠĠ Ġfun Ġget Users No Auth (): ĠCall < JsonArray > Ċ } Ċ