Updated Admin API Reference (markdown)

Stef Heyenrath committed 2021-09-30 08:47:04 +02:00
1 parent 977460d3be
commit 234f518e86
1 file changed
+5
+5
@@ -16,6 +16,11 @@ var api = RestClient.For<IWireMockAdminApi>("http://localhost:9091");
// Set BASIC Authorization
api.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(Encoding.ASCII.GetBytes("foo:bar")));
// OR
// Set Azure ADAuthorization
api.Authorization = new AuthenticationHeaderValue("Bearer", "eyJ0eXAiOiJKV1QiLCJ...");
// Call API
var settings = await api.GetSettingsAsync();
```