I have two REST endpoints with the following signatures:
DELETE /v2/cars/:carId *where carId is an integer*
DELETE /v2/cars/:carMake *where carMake is a string*
It appears Strongloop does not handle this well, as it assumes input is always carName and not carId. Maybe it's just bad practice to have two resources like this...
What is a good way around this, or a better design?
Should I proxy calls to these two endpoints with Strongloop, appending query param 'byCarMake'?
/v2/cars/porche?byCarMake=true
Or is the resource location wrong? Could I do:
DELETE /v2/cars/carId/byCarId
Neither of these seem like a good solution. So, according to REST standards, what is the best way to handle something like this?