Suppose you have three networks.
AAACCC, AAABBB, BBBCCC
And then you have two requests
Wappsto.Network.findByName('AAA', 2)
Wappsto.Network.findByName('BBB', 2)
Then it is hard to understand which networks are assigned for the first request and which one for the second request.
To simplify this I suggest to add some tag behind the scene.
So
Wappsto.Network.findByName('AAA', 2)
instead to be only
GET /network?this_name=AAA&quantity=2
could be something like:
- GET /network?this_meta.tag_by_user=tag_request
- If found network, return networks
- Otherwise do: GET /network?this_name=AAA&quantity=2
- Follow the usual notification flow
- After received the network use: POST /network/meta.tag_by_user?id=[network_ids] with body tag_request
- Return the networks
Tag_request can be any string, but it should be unique for request.
Suppose you have three networks.
AAACCC, AAABBB, BBBCCC
And then you have two requests
Then it is hard to understand which networks are assigned for the first request and which one for the second request.
To simplify this I suggest to add some tag behind the scene.
So
instead to be only
GET /network?this_name=AAA&quantity=2
could be something like:
Tag_request can be any string, but it should be unique for request.