MEILI_ENDPOINT ?= http://localhost:7700

update-all: update-case-index update-plan-index update-plan-execution-index

update-case-index:
	curl -s -X POST "${MEILI_ENDPOINT}/indexes/cases/settings" -H 'Content-Type: application/json' -d "@index/case.json"
.PHONY: update-case-index

update-plan-index:
	curl -s -X POST "${MEILI_ENDPOINT}/indexes/plans/settings" -H 'Content-Type: application/json' -d "@index/plan.json"
.PHONY: update-plan-index

update-plan-execution-index:
	curl -s -X POST "${MEILI_ENDPOINT}/indexes/plan-executions/settings" -H 'Content-Type: application/json' -d "@index/plan-execution.json"
.PHONY: update-plan-execution-index
