Hi,
if you are using this pattern:
/resource1/:id1/resource2/:id2
for referring to associations between resources, then you are doing so because you need some kind of context for "resource2" to be identified.
If that is the case, then all the CRUD operations should be using that pattern. Namely:
GET /resource1/:id1/resource2/:id2 (get a specific resource2 element)
PUT /resource1/:id1/resource2/:id2 (modify)
DELETE /resource1/:id1/resource2/:id2 (delete)POST /resource1/:id1/resource2 (create a resource2 element in the resource1 context. And
should usually be only accessible through the same context)