Skip to content

Instantly share code, notes, and snippets.

@jfversluis
Created March 24, 2017 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfversluis/efb9c5c4c62aef5d672c49e34d17f7bd to your computer and use it in GitHub Desktop.
Save jfversluis/efb9c5c4c62aef5d672c49e34d17f7bd to your computer and use it in GitHub Desktop.
Expanding the Refit interface
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