RestClient Admin API Metadata Base Path Duplication #269

Closed
opened 2025-12-29 15:19:27 +01:00 by adam · 3 comments
Owner

Originally created by @DuncanKennedy on GitHub (May 13, 2020).

Originally assigned to: @StefH on GitHub.

https://github.com/WireMock-Net/WireMock.Net/blob/master/src/WireMock.Net.RestClient/IWireMockAdminApi.cs

ResetMappingsAsync method contains the base path (__admin) in its metadata attribute unlike the other methods in this interface. This causes the incorrect path to get used for example when using the interface definition with RestEase. Ex. _mockServerAdminApi = RestClient.For("http://localhost:9292/");

image

Originally created by @DuncanKennedy on GitHub (May 13, 2020). Originally assigned to: @StefH on GitHub. https://github.com/WireMock-Net/WireMock.Net/blob/master/src/WireMock.Net.RestClient/IWireMockAdminApi.cs ResetMappingsAsync method contains the base path (__admin) in its metadata attribute unlike the other methods in this interface. This causes the incorrect path to get used for example when using the interface definition with RestEase. Ex. _mockServerAdminApi = RestClient.For<IWireMockAdminApi>("http://localhost:9292/"); ![image](https://user-images.githubusercontent.com/16522975/81865948-83cc4480-953c-11ea-9a57-62957570d176.png)
adam added the bug label 2025-12-29 15:19:27 +01:00
adam closed this issue 2025-12-29 15:19:27 +01:00
Author
Owner

@StefH commented on GitHub (May 14, 2020):

New NuGet will be released shortly

@StefH commented on GitHub (May 14, 2020): New NuGet will be released shortly
Author
Owner

@DuncanKennedy commented on GitHub (May 14, 2020):

Thank you

@DuncanKennedy commented on GitHub (May 14, 2020): Thank you
Author
Owner

@StefH commented on GitHub (May 14, 2020):

@DuncanKennedy Thank you for finding this, the bug has been there for some time!

And if you have more issues or ideas, please share.

@StefH commented on GitHub (May 14, 2020): @DuncanKennedy Thank you for finding this, the bug has been there for some time! And if you have more issues or ideas, please share.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#269