-
Notifications
You must be signed in to change notification settings - Fork 1
Description
The document currently requires a parent parameter for post:
parent
identifier for the collection under which a new collection or document is to be created.
The usual REST idiom is that a POST to a collection URI creates a new item as a child of the target resource.
I don't particularly like this version either:
There are no required query parameters for a POST request to the Collections endpoint. The one optional parameter is parent. This should be the unique identifier of an existing collection. If a parent is supplied, then the new item will be created as a child member of that collection. Otherwise the new item will be created at the top level of the target repository.
I prefer not to rely on query parameters to know where a resource is going to be created. The semantics of POST on a collection URI are generally pretty standard, we should stick to them.