Results tagged “API スキーマ”

There is No U in CRUD

There is No U in CRUD

API設計時にCRUD(Create、Read、Update、Delete)を捨てて、ドメイン駆動設計しましょうというアマゾンの方の話です。

POST /account - open a new account. PUT /account//close - close an existing account. PUT /account//debit - remove money from an account. PUT /account//credit - add money to an account. GET /account/ - load single account by its account id GET /account//transactions - list transaction history for an account. GET /accounts/query/customerId/ - list accounts for the given customer id.