I’m designing the architecture for my e-commercial sites. I’ve designed RESTful interface for product management, but the feature “pay for product” is not so natural in RESTful way in my opinion. Could someone give me an idea? How to design it?
I’m designing the architecture for my e-commercial sites. I’ve designed RESTful interface for product
Share
Paying for things is not idempotent; users really care how often it happens. As such, it maps to a POST in the RESTful model. That can then result in the creation of a record of the transaction which can be handled by GET, etc.