Bug: Admin GetRequestAsync does not populate request body for JsonApi ("application/vnd.api+json") content #133

Closed
opened 2025-12-29 14:23:21 +01:00 by adam · 1 comment
Owner

Originally created by @steveland83 on GitHub (Aug 17, 2018).

If we do a Post/Put to a Wiremock stub with a Json API Request ContentType="application/vnd.api+json" and then we check the detail of the request sent using the GetRequestAsync method on the admin API, then the request body is null. If we do same steps with Json request body ContentType="application/json" this works as expected.

Have created two test methods in WireMock.Net\test\WireMock.Net.Tests\FluentMockServerAdminRestClientTests
in this PR: https://github.com/WireMock-Net/WireMock.Net/pull/186

Happy to work on this if required.

Originally created by @steveland83 on GitHub (Aug 17, 2018). If we do a Post/Put to a Wiremock stub with a Json API Request `ContentType="application/vnd.api+json"` and then we check the detail of the request sent using the GetRequestAsync method on the admin API, then the request body is null. If we do same steps with Json request body `ContentType="application/json"` this works as expected. Have created two test methods in WireMock.Net\test\WireMock.Net.Tests\FluentMockServerAdminRestClientTests in this PR: https://github.com/WireMock-Net/WireMock.Net/pull/186 Happy to work on this if required.
adam closed this issue 2025-12-29 14:23:21 +01:00
Author
Owner

@StefH commented on GitHub (Aug 17, 2018):

PR merged.

@StefH commented on GitHub (Aug 17, 2018): PR merged.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#133