Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
beza1e1
on March 30, 2012
|
parent
|
context
|
favorite
| on:
RESTful thinking considered harmful
Nearly correct. POST does not specify the name of the resource. So you do
/orders/42 # with { order: { paid: true } }
And it returns the /orders/42/payment transaction resource.
drsim
on March 30, 2012
[–]
I disagree. Surely an Order HAS Payments, therefore /orders/42/payment POST is more correct. Likewise orders/42/shipment.
Nicely leading on to /orders/42/payments/1.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: