Non-CRUD operations in a RESTful service
Think about purchase as a business entity or a resource in RESTful dictionary. That being said, making a purchase is actually creating a new resource. So: POST /api/purchase will place a new order. The details (user, car, etc.) should be referenced by id (or URI) inside the contents sent to this address. It doesn’t matter … Read more