-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
farmOS 2.x Support #98
Comments
TLDR; after documenting these todos, I really think we need to enforce that the Aggregator API version matches the farmOS server version ( FastAPI will allow us to maintain both v1 and v2 API endpoints. It also has methods so that we can re-use logic wherever possible. Down the road, removing v1 would be easy (or even configurable in the Aggregator env settings!). @mstenta I know we also mentioned a translation layer provided by the Aggregator, but this seems like it just pushes the problem for later. The best way to utilize the new API format.... is to just use it. Perhaps most important are the different response and POST formats between 1x and 2x (something I didn't mention above!). Consider the following: if a single request to an aggregator endpoint (eg: Enforcing the server version on the API makes the client logic much simpler: rather than checking the structure of returned data, the client will know what to expect when making a request to either This also simplifies #97, #101 and #102 since each version of the Aggregator API can have different (more or less) endpoints, and each endpoint can behave differently than its |
More info on the farmOS 2.x roadmap: https://www.drupal.org/project/farm/issues/3092830
Perhaps most notable for the Aggregator are changes to the farmOS server API: http://2x.farmos.org/api/changes/
These API changes will also be reflected in the farmOS.py API: farmOS/farmOS.py#39
Since the Aggregator exposes endpoints that are largely coupled to the farmOS.py API, we need to decide how to support both versions concurrently:
As @mstenta noted in #97:
TODO:
bundle
in the API endpointsfarm.info
(new JSONAPI structure) Re-visit storage offarm.info
#103The text was updated successfully, but these errors were encountered: