Quick intro to JSON PATCH in ASP.NET Core

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

JsonPatchDocument is kind of awesome, trying to convince my team to use it, but they would rather just replace the entire JSON object at one time. You can even handle patching non-json and json in different operations of the same patch. What's worse is now there is more logic in the UI that should be in the application/domain layer.

trxe
Автор

Good luck for FrontEnd guys writing Json to use patch

minik
Автор

I would like to use jsonpatch for my endpoint in my webapi clean architecture (using fluentvalidation, cqrs, dapper). I would like to know in what layer I should apply the patch.

I think to update my domain entity, normally I must do it in domain.
But here, if I do apply patch in domain, I can't because domain can't have dependencies

playmaker
Автор

Im assuming the dto mentioned is only the set of fields that are allowed to be patched. If not is there a mechanism to validate the fields that are allowed to be patched?

T___Brown
Автор

How does this fit into CQRS with MediatR?

Yetibyte
Автор

Unfortunately there's nothing out of the box for minimal apis

franciscovilches
visit shbcf.ru