When building a RESTful API over HTTP, what is considered to be correct when wanting to add resources to a nested relationship (e.g. a user with posts)?
Post the new resource to:
/users/$user_id/posts/
Or post the new resource to:
/posts/
And setting the user ID in the POST data?
Sorry, but there's so much FUD about REST APIs, I'm still trying to figure a lot of things out.
Thanks in advance!
K.