[PR #409] [MERGED] Admin Delete with mappings in body #899

Closed
opened 2025-12-29 08:33:56 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/wiremock/WireMock.Net/pull/409
Author: @NoahLerner
Created: 1/30/2020
Status: Merged
Merged: 1/31/2020
Merged by: @StefH

Base: masterHead: master


📝 Commits (8)

  • c9f55e9 Support sending mappings in body of Delete request which will remove the specified mappings by Guid
  • fd72b19 Return IEnumerable instead of bool
  • fd3eaf5 Checking settings AllowBodyForAllHttpMethods not necessary
  • 3231104 Remove unnecessary string interpolation
  • 1fe6b8a use string instead of String
  • dff7a39 Use var instead of typed variable
  • 9fcbedc Remove unnecessary nullable check
  • d1b048b Remove comment

📊 Changes

1 file changed (+55 additions, -3 deletions)

View changed files

📝 src/WireMock.Net/Server/WireMockServer.Admin.cs (+55 -3)

📄 Description

Using HTTP Delete verb, a user can send multiple mapping jsons (with GUIDs) for deletion.
Note: AllowBodyForAllHttpMethods must be set to true.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/wiremock/WireMock.Net/pull/409 **Author:** [@NoahLerner](https://github.com/NoahLerner) **Created:** 1/30/2020 **Status:** ✅ Merged **Merged:** 1/31/2020 **Merged by:** [@StefH](https://github.com/StefH) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (8) - [`c9f55e9`](https://github.com/wiremock/WireMock.Net/commit/c9f55e9d0df9a3101fbec9082dcb95354b02ae22) Support sending mappings in body of Delete request which will remove the specified mappings by Guid - [`fd72b19`](https://github.com/wiremock/WireMock.Net/commit/fd72b1970c504252b12788162d3c5e088d631d1d) Return IEnumerable<Guid> instead of bool - [`fd3eaf5`](https://github.com/wiremock/WireMock.Net/commit/fd3eaf580669c9534228ac794900f8e86b49b1e4) Checking settings AllowBodyForAllHttpMethods not necessary - [`3231104`](https://github.com/wiremock/WireMock.Net/commit/32311041d241643bceb962152cea8440657ab653) Remove unnecessary string interpolation - [`1fe6b8a`](https://github.com/wiremock/WireMock.Net/commit/1fe6b8afa65a8d97bef10979f488fb9ec045f418) use string instead of String - [`dff7a39`](https://github.com/wiremock/WireMock.Net/commit/dff7a39e47ea299a4be6b51a46994fe250e6ec96) Use var instead of typed variable - [`9fcbedc`](https://github.com/wiremock/WireMock.Net/commit/9fcbedce71387b611079a8b0d6452633ba015c95) Remove unnecessary nullable check - [`d1b048b`](https://github.com/wiremock/WireMock.Net/commit/d1b048b2cd8a18a573a72cef6d06e0bf1ebe776d) Remove comment ### 📊 Changes **1 file changed** (+55 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/WireMock.Net/Server/WireMockServer.Admin.cs` (+55 -3) </details> ### 📄 Description Using HTTP `Delete `verb, a user can send multiple mapping jsons (with GUIDs) for deletion. Note: `AllowBodyForAllHttpMethods `must be set to true. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 08:33:56 +01:00
adam closed this issue 2025-12-29 08:33:56 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#899