I have write patch in WEB API now i want to consume that in UI how to write code for that one could you please send it that code both code of controller and View
Loading
I have write patch in WEB API now i want to consume that in UI how to write code for that one could you please send it that code both code of controller and View
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Naimish MakwanaPosted Mar 2, 2023, 4:06 AM
Hello Latha,
PATCH method in your WEB API controller that updates an existing resource based on the provided input
To consume the PATCH method in the UI and display the updated resource in the view, using Jquery
You can refere below links for using in UI
https://stackoverflow.com/a/49905148/3054222
Also full example with all the request.
https://www.yogihosting.com/aspnet-core-consume-api-jquery/
Thanks
Naimish Makwana