diff --git a/Admin-API-Reference.md b/Admin-API-Reference.md index 0af08d1..87b8fe4 100644 --- a/Admin-API-Reference.md +++ b/Admin-API-Reference.md @@ -25,6 +25,25 @@ api.Authorization = new AuthenticationHeaderValue("Bearer", "eyJ0eXAiOiJKV1QiLCJ var settings = await api.GetSettingsAsync(); ``` +### FluentBuilder +All Admin API Model classes are annotated with [FluentBuilder](https://github.com/StefH/FluentBuilder) which makes it easy to build a mapping in a fluent way. + +Example code: +``` c# +var mappingBuilder = api.GetMappingBuilder(); + mappingBuilder.Given(m => m + .WithTitle("This is my title 1") + .WithRequest(req => req + .UsingGet() + .WithPath("/bla1") + ) + .WithResponse(rsp => rsp + .WithBody("x1") + .WithHeaders(h => h.Add("h1", "v1")) + ) + ); +``` + ## Supported interfaces The following interfaces are supported: