Files
openfoodnetwork/engines/dfc_provider/script/update-dfc-vocabularies
Maikel Linke 5187201796 Add DFC vocabularies
- Add a script for downloading updated files.
- Add a service for easier loading of vocab files.
2023-05-09 16:51:25 +10:00

11 lines
327 B
Bash
Executable File

#!/bin/sh
set -e
dst="`dirname $0`/../vendor"
mkdir -p "$dst"
curl 'http://static.datafoodconsortium.org/data/facets.json' > "$dst/facets.json"
curl 'http://static.datafoodconsortium.org/data/measures.json' > "$dst/measures.json"
curl 'http://static.datafoodconsortium.org/data/productTypes.json' > "$dst/productTypes.json"