I\'ve come across a problem at work where I can\'t find information on the usual standard or practice for performing CRUD operations in a RESTful web service against a resource
I suggest:
/api/PartsProductsAssoc
: Create link between part and product. Include part and product ids in POST data./api/PartsProductsAssoc/
: read/update/delete link with
(not part or product id, yes, this means creating a new column in your PartsProductsAssoc table)./api/PartsProductsAssoc/Parts//Products
: get list of products associated with the given part./api/PartsProductsAssoc/Products//Parts
: get list of parts associated with the given product.Reasons to take this approach:
For more info, see https://www.youtube.com/watch?v=hdSrT4yjS1g at 56:30.