mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-24 09:18:27 +02:00
Updated Admin API Reference (markdown)
@@ -16,6 +16,11 @@ var api = RestClient.For<IWireMockAdminApi>("http://localhost:9091");
|
|||||||
// Set BASIC Authorization
|
// Set BASIC Authorization
|
||||||
api.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(Encoding.ASCII.GetBytes("foo:bar")));
|
api.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(Encoding.ASCII.GetBytes("foo:bar")));
|
||||||
|
|
||||||
|
// OR
|
||||||
|
|
||||||
|
// Set Azure ADAuthorization
|
||||||
|
api.Authorization = new AuthenticationHeaderValue("Bearer", "eyJ0eXAiOiJKV1QiLCJ...");
|
||||||
|
|
||||||
// Call API
|
// Call API
|
||||||
var settings = await api.GetSettingsAsync();
|
var settings = await api.GetSettingsAsync();
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user