Getting started - mattiasnordqvist/Web-Anchor GitHub Wiki

Install

To install Web anchor, run the following command in the Package Manager Console

PM> Install-Package WebAnchor

Use

[BaseLocation("api/customer")]
public interface ICustomerApi
{
    [Get("{id}")]
    Task<Customer> GetCustomer(int id);
}

....

var customerApi = Api.For<ICustomerApi>("http://localhost:1111/");
await customerApi.GetCustomer(9);

// => HTTP GET http://localhost:1111/api/customer/9

Nice, isn´t it? Read up on the the Basics of Web Anchor and you´ll see how it becomes even nicer. 👍

⚠️ **GitHub.com Fallback** ⚠️