You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
just to clarify, as this is not stated explicitly in the spec: is it ok to use POST on related collection URLs (e.g. /posts/1/comments) to create a new resource of the collection's type that is automatically linked to the related resource?
A resource can be created by sending a POST request to a URL that represents a collection of resources.
A server may choose not to support resource creation at all, but if it does, I would certainly expect related collections to accept POST requests. AFAIK this is not a requirement, however.
Activity
bintoro commentedon Mar 21, 2015
Absolutely.
A server may choose not to support resource creation at all, but if it does, I would certainly expect related collections to accept POST requests. AFAIK this is not a requirement, however.
timabdulla commentedon Mar 25, 2015
thanks, that clarifies that!