API. API. , , id . , API , , PUT/cars/5, .
, 8 API. GET, POST, PUT, DELETE HEAD. ( , 9 10, ).
, , GET. GET/cars , GET/cars/5 5.So, GET. POST, PUT DELETE. 4 * 2 = 8 ?
Now there are people who will say that PUT / cars will be ambiguous, however, you completely act without an additional identifier field, because, as you mentioned, you already go to the ID field in the request,
The Apigee guys have been studying API projects for some time now. I recommend watching some of their videos in order to better understand what the API is and why some arguments are valid and others not.
Best examples of Apigee
source
share