I'm developing a service that will provide some functions for external access, using REST architecture. It is the beginning of a RestAPI for the company. But let's get into the problem. I need to update some punctual data for a particular product. So I decided to default to the URL:
http://..../Produtos/{id}/ValorVenda/{valor}
In the above case, the value field refers to the new value of the product. However, I would not like to do this transaction using the GET method. So I thought about adopting this URL pattern:
http://..../Produtos/{id}
I would like to use the POST method and pass the new product data through a JSON. I did not find anything similar in the search I made, so I'm not sure if that's the right way to do it.