#!/bin/bash

# CONTANTS
REFERENTIELS="criteres etapes hypotheses impactequipements impactreseaux mixelecs typeEquipement correspondanceRefEquipement"

E2E_LOCAL_PATH=../../../e2e

. ./.env
. ./utils.sh

log "Send referentiel data"
for ref in $REFERENTIELS; do
    log_n
    curl -s -XPOST $REFERENTIEL_URL/referentiel/$ref/csv --form file=@${E2E_LOCAL_PATH}/input_ref/$ref.csv
    echo ""
done
