3 ms·
Sure, but maybe you could think of POSTing to /honks as "creating a honk." This would make sense if you wanted to GET /honks and see a collection of previous h
by zachrose 12y ago
Sure, but maybe you could think of POSTing to /honks as "creating a honk."
This would make sense if you wanted to GET /honks and see a collection of previous honks. (Modifying an existing honk doesn't make sense, so we wouldn't have to worry about it.)
- andrewstuart2 12y agoI wouldn't mind performing GET /vehicle/{id}/honks?since={time}&limit=1000 to see an indicator of how aggressively my car has been driven. Especially if somebody else is driving it.
- shawnz 12y agoI think this interpretation is the best fit. Similarly PUT would be appropriate for requests where you are specifying the time that the honk should occur, which would make them idempotent.