ttu / dotnet-fake-json-server

Fake JSON Server is a Fake REST API that can be used as a Back End for prototyping or as a template for a CRUD Back End.
https://ttu.github.io/dotnet-fake-json-server/
MIT License
388 stars 84 forks source link

Merge patch to support nested properties #85

Closed frenzyfunky closed 3 years ago

frenzyfunky commented 3 years ago

Hello @ttu i've made this PR regarding to #56 . Created a new action method for this, didn't modify the existing one. Hope this works.

ttu commented 3 years ago

Thanks for the implementation!

Could you also add tests for this functionality? e.g. for the full patch https://github.com/ttu/dotnet-fake-json-server/blob/2241fe83427a5a65c1a9fa94b0b8e4ca46fb854b/FakeServer.Test/FakeServerSpecs.cs#L520

frenzyfunky commented 3 years ago

You're welcome.

I added 2 tests PatchItem_Nested and PatchItem_Nested_UnsupportedMediaType. If more is needed please tell.

ttu commented 3 years ago

Thanks! These tests are good 👍