do you need to create an API to connect to an index in elasticsearch code example
Example: elastic create index
PUT /my-index-000001
// or with curl
curl -X PUT "localhost:9200/my-index-000001?pretty"
PUT /my-index-000001
// or with curl
curl -X PUT "localhost:9200/my-index-000001?pretty"