Representation State Transfer (REST) API
- REST determines how API looks like.
- In REST API we send Requests from Client to Server.
- Anatomy of Request
- Endpoint:
- route or url for your request
- Method: GET, POST, PUT, DELETE
- Headers:
- Data (body): mostly json content
- Endpoint:
CRUD Operations
- Elastic search exposes well-designed REST API by using them we can perform CRUD (Create, Retrieve, Update and Delete)
- Refer Here for rest api documentation of elastic search
Index API
- Refer Here for official docs of index api
- Lets create a new request for a student by providing id
- Lets explore apis
- Get a document from students which has id 1

- Search all documents in an index

- Search for documents in multiple indexes

- Lets search for all documents of particular type in all indexes 
- Get a document from students which has id 1
