Isn't it a best practice to use PATCH instead of GET, when updating certain fields in a record ? Just wanted to get a clarification.
@ChuckTomasi4 жыл бұрын
Yes, that's best practice. GET should be used to retrieve data. You can still pass query parameters or path parameters to filter/sort/etc.
@aishwaryashukla92804 жыл бұрын
@@ChuckTomasi Okay. Thanks for the insight !
@joroklifov73384 жыл бұрын
Hi Chuck, getInfo() is not showing anything because the 'str' variable the method returns is actually empty - we should return 'inst' var insted. Just to point this out in case anyone is wondering why it was empty :) Cheers, Joro