mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-05-30 03:30:42 +02:00
Updated Admin API Reference (markdown)
@@ -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();
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user