Updated Admin API Reference (markdown)

Stef Heyenrath
2023-02-25 12:51:33 +01:00
parent fd9263dd9d
commit 6fee32a759

@@ -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: