I have 2 types of resources, Query
and User
.
I am POST
ing to /queries
to create a new query.
and POST
ing to /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 Users
and 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?