-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin Delete with mappings in body #409
Conversation
…the specified mappings by Guid
Hi again @StefH I've extended functionality of the HTTP Delete verb at the If the mappings json is malformed, the user receives a BadRequest response. Note that the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one small thing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
@StefH - How can I update the Wiki to reflect the changes? |
I did send an invite to this project, you should be able to edit the wiki I think. |
I just remembered.. This file https://github.com/WireMock-Net/WireMock.Net/blob/master/src/WireMock.Net.RestClient/IWireMockAdminApi.cs Can you make a PR for this ? |
I think I just made a mess of the repo while trying to fix this. I don't want to mess it up anymore, can you take a look? |
I committed 2dcf4b3 directly to the upstream by accident. |
Sorry, I forgot to tell you. I did update some code in your "PathUtils" branch. I'll take a look a try to fix. |
Thank for having a look.
I saw, that's totally fine. Let's move this part of the discussion to that PR. |
@thewholuver94 --> I did remove all your commits from the |
* Fix new Delete with body missing from IWireMockAdminApi interface * Admin Delete with mappings in body (#409) * Add unit test for delete with body * change order of checks for readability. looks nicer. * Allow body in DELETE requests * Fix unit tests according to DELETE supporting body * Re-run CI * Fix DELETE with body unit test * Fix ElementAt index in mappings list * Fix DELETE with body unit test * Fix theory tag must be accompanied by some InlineData or Member * Fix didn't use correct checking syntax * Fix wrap entire unit test in if region
Using HTTP
Delete
verb, a user can send multiple mapping jsons (with GUIDs) for deletion.Note:
AllowBodyForAllHttpMethods
must be set to true.