The Elasticsearch REST API can be used for various tasks. Thanks to this, we can manage indices, change instance parameters, check nodes and cluster status, index data, search the data, or retrieve documents via the GET API. But for now, we will concentrate on using the CRUD (create-retrieve-update-delete) part of the API, which allows you to use Elasticsearch in a similar way to how you would use a NoSQL database.
In a REST-like architecture, every request is directed to a concrete object indicated by the path of the address. For example, if
/books/ is a reference to a list of books in our library,
/books/1 is the reference to the book with the identifier
1. Note that ...