I have two types of resources:
/queries to create a new query.
/users to create a new user.
Which path should I post to , to create a new
Query collection and a new
User collection ?
As per my understanding, we
POST to a resource/collection parent , to create that resource/collection. In this case, the parent for
Queries would be the same, if I
POST to the parent, how do I identify which collection should be created?
Can I use a factory path to generate these collections, if yes, how?
TL;DR - I use
/users to create a
User resource respectively, what path should i use to create the
EDIT: I am looking for advice on how this is usually achieved in REST.