publicinterfaceIBackendService{// when set, it will always be sent with// every request[Header("access-key")]AccessKey{get;set;}[Get("/location/{ip}")]Task<IPInfo>GetLocationInfoAsync([Path("ip")]stringip);[Post("/location/{ip}")]Task<IPInfo>SaveLocationInfoAsync([Body]IPInfoinfo);// retrive http response for detailed response[Get("/video/{id}.mp4")]Task<HttpResponseMessage>GetRawResponse([Query("id")]stringid);[Get("/voice/{id}.mp3")]Task<byte[]>GetByteArray([Query("id")]stringid);}
publicinterfaceIBackendService{// when set, it will always be sent with// every request[Header("access-key")]AccessKey{get;set;}[Get("/location/{ip}")]Task<IPInfo>GetLocationInfoAsync([Path("ip")]stringip);[Post("/location/{ip}")]Task<IPInfo>SaveLocationInfoAsync([Path("ip")]stringip,[Body]IPInfoinfo);[Get("/voice/{id}.mp3")]Task<byte[]>GetByteArrayAsync([Query("id")]stringid);// Response Object with Header[Get("/projects")]Task<GitLabResponse
Top comments (0)