Created
March 24, 2017 10:46
-
-
Save jfversluis/efb9c5c4c62aef5d672c49e34d17f7bd to your computer and use it in GitHub Desktop.
Expanding the Refit interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Threading.Tasks; | |
using Refit; | |
namespace RefitTestApp | |
{ | |
public interface IRestClient | |
{ | |
[Get ("/posts")] | |
Task<Foo []> GetPosts (); | |
[Get ("/posts/{id}")] | |
Task<Foo> GetPost (int id); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment