Should JSON patch be in controller or in the service layer?

I’m building a tiered app and I’ve hit a snag. I really want to have JSON patch functionality in my .NET Core API. I want to support patching because it’s awesome but I don’t think it belongs in the controller layer. If I were to move my app to a service bus or some other tech the controller layer would no longer exists which means I would loose the patch functionality. On the other hand putting JSON patch in the service layer seams wonky because it’s clearly a technology built for the controller layer. What are your thoughts?

submitted by /u/Unexpectedpicard
[link] [comments]

Leave a Reply