Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 798 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 798 Bytes

schemas

RPG Bio

Pour mettre à jour le champ resources

Le champ resources se récupère au format JSON dans le presse-papier du système d'exploitation en lançant cette commande :

curl -sSL https://www.data.gouv.fr/api/1/datasets/616d6531c2951bbe8bd97771/ |
  jq -r '.resources | map({ name: .title, path: .latest, format: (if .format == "geojson.gz" then "geojson" elif .format == "shp.zip" then "shapefile" else null end), mediatype: (if .format == "geojson.gz" then "application/json" elif .format == "shp.zip" then "application/octet-stream" else .mime end), schema: "./table.schema.json" })' |
  pbcopy