-
Notifications
You must be signed in to change notification settings - Fork 8
Getting started
Mattias Nordqvist edited this page Apr 17, 2015
·
7 revisions
[BaseLocation("api/customer")]
public interface ICustomerApi
{
[Get("/{id}")]
Task<HttpResponseMessage> GetCustomer(int id);
}
....
var customerApi = Api.For<ICustomerApi>("http://localhost:1111/");
await customerApi.GetCustomer(9);
// => HTTP GET http://localhost:1111/api/customer/9
- Getting started
- Basics (Http GET & Base Location)
- Basics pt. 2 (POST/PUT/DELETE, HttpResponseMessage, Exceptions, HttpClient, IDisposable)
- Building an HttpRequestMessage
- Parameter attributes
- Handling responses
- ApiSettings
- Typical setup (Develop/Test/Production & Mocking)
- Logging
- Testing
- Generic Api
- Multipart