mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
Uploaded images can be several MB in size. While offering the big size would enable other apps to resize it and store the image size they need, we have only one app using it in practice and it's using the image directly. It's much simpler and if a default size will work for others in the future then why not just serve that. We can revise this in the future. There is a DFC discussion about publishing several sizes which I started: https://github.com/datafoodconsortium/ontology/discussions/77#discussioncomment-8228094
Data Food Consortium API for the Open Food Network app (OFN DFC API)
This engine implements the Data Food Consortium specifications. It serves and reads semantic data encoded in JSON-LD.
The API is documented with Swagger at /api-docs. You can update these docs
with:
./script/rswag engines/dfc_provider
More documentation by the Data Food Consortium: