1
I am developing a service that will provide some functions for external access, using REST architecture. It’s the start of a Restapi for the company. But let’s get to the problem. I need to update some point data for a particular product. So I decided to use as default for the URL:
http://..../Produtos/{id}/ValorVenda/{valor}
In the above case, the field value refers to the new product value. However, I would not like to make this transaction using the GET method. So I thought I’d adopt this pattern for URL:
http://..../Produtos/{id}
I would like to use the POST method and pass the new product data through a JSON. In the research I’ve done I haven’t found anything like it, so I’m also not sure if it’s the right way to do it.
For partial changes it is more interesting to use the method
PATCH
.– Jéf Bueno