-
-
Notifications
You must be signed in to change notification settings - Fork 13
Description
It would be great if this library could also be used to communicate with the aggregator.
I am planning to add an additional "relay" endpoint on the aggregator that can be used to send a request at any given path (not limited to JSONAPI) to an individual farmOS server. In theory, this means farmOS.py just needs to send requests to a different api base path (api/v2/relay instead of api) and be able to include additional query params to identify which farmOS server it intends to communicate with. The aggregator will authenticate these requests accordingly.
farmOS.py will also need to support the api-key authentication that the aggregator uses. The aggregator is also its own OAuth provider (only supporting the password credentials grant), so perhaps farmOS.py could support that (if it doesn't already), but this is less of a priority.