elastic.ymlsets up a docker container named
es01and needs to be running.
docker-compose -f .\libs\api-catalogue\elastic\elastic.yml upinitiates the container which can then be managed through Docker.
es01is running it can be initialized with data from
initialData.jsonusing curl command:
curl -H 'Content-Type: application/x-ndjson' -XPOST localhost:9200/_bulk --data-binary '@./libs/api-catalogue/elastic/initialData.txt'
curl -XDELETE localhost:9200/apicataloguecan be used to delete the index.