Skip to main content
added 76 characters in body
Source Link

I have two types of resources: Query and User.

I am POSTing to /queries to create a new query. and POSTing 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?

TL;DR - I use /queries and /users to create a Query and User resource respectively, what path should i use to create the Queries and Users collection?

EDIT: I am looking for advice on how this is usually achieved in REST.

I have two types of resources: Query and User.

I am POSTing to /queries to create a new query. and POSTing 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?

TL;DR - I use /queries and /users to create a Query and User resource respectively, what path should i use to create the Queries and Users collection?

I have two types of resources: Query and User.

I am POSTing to /queries to create a new query. and POSTing 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?

TL;DR - I use /queries and /users to create a Query and User resource respectively, what path should i use to create the Queries and Users collection?

EDIT: I am looking for advice on how this is usually achieved in REST.

added 174 characters in body
Source Link

I have two types of resources: Query and User.

I am POSTing to /queries to create a new query. and POSTing 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?

TL;DR - I use /queries and /users to create a Query and User resource respectively, what path should i use to create the Queries and Users collection?

I have two types of resources: Query and User.

I am POSTing to /queries to create a new query. and POSTing 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?

I have two types of resources: Query and User.

I am POSTing to /queries to create a new query. and POSTing 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?

TL;DR - I use /queries and /users to create a Query and User resource respectively, what path should i use to create the Queries and Users collection?

added 3 characters in body; edited title
Source Link
Tulains Córdova
  • 39.5k
  • 13
  • 99
  • 155

REST  : multiple independent collections under same root

I have 2two types of resources,: Query and User.

I am POSTing to /queries to create a new query. and POSTing to /users to create a new user.

Which path should iI 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. inIn this case, the parent for Users and Queries would be the same, if iI POST to the parent, how do iI identify which collection should be created?

Can iI use a factory path to generate these collections, if yes, how?

REST  : multiple independent collections under same root

I have 2 types of resources, Query and User.

I am POSTing to /queries to create a new query. and POSTing 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?

REST: multiple independent collections under same root

I have two types of resources: Query and User.

I am POSTing to /queries to create a new query. and POSTing 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?

Source Link
Loading