Closed cdupont closed 6 years ago
I suggest to change the API URL to:
/domain/:domain/socials
And to use the domain for the collection name in mongo. What do you think?
Ok, let me update then.
Hi Constantin, did you succeed?
Yes I did :)
Thanks, closing
All waziup API contains the "domain" (see D3.1 for more details):
/api/v1/domain/waziup/sensors
The domain here is "waziup". Another example is "UGB-Farm1". A domain corresponds to a set of resources that we don't want to mix with others. For instance, we store the sensor measured values in a mongo DB, with collectionName = domain. So it makes sense to sort the social messages by domain, too...