mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
[PR #67] [MERGED] bug: fix supporting the Patch method and logging the body #754
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/wiremock/WireMock.Net/pull/67
Author: @alastairtree
Created: 11/20/2017
Status: ✅ Merged
Merged: 11/20/2017
Merged by: @StefH
Base:
master← Head:feat/support-patch📝 Commits (3)
87ac0afbug: fix supporting the Patch method and logging the bodyd50fa68chore: typo fixed658289eAdded / reordered tests for PATCH method📊 Changes
7 files changed (+182 additions, -144 deletions)
View changed files
📝
src/WireMock.Net/Client/IFluentMockServerAdmin.cs(+0 -1)📝
src/WireMock.Net/Owin/OwinRequestMapper.cs(+2 -1)📝
src/WireMock.Net/RequestBuilders/IMethodRequestBuilder.cs(+16 -8)📝
src/WireMock.Net/RequestBuilders/Request.cs(+22 -47)📝
test/WireMock.Net.Tests/FluentMockServerTests.cs(+28 -0)➕
test/WireMock.Net.Tests/RequestTests.PathAndMethod.cs(+113 -0)📝
test/WireMock.Net.Tests/RequestTests.cs(+1 -87)📄 Description
If you need to mock an API designed to the JsonAPI specification you need to work with PATCH requests with a http body. This fix and tests should allow support of PATCH with body and ensure the correct information gets logged.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.