This application consists of mainly 3 apis
- POST /index - This takes in a sample message and indexes into ElasticSearch and Redis.
- GET /index - This gets the data from Redis
- GET /search - This searches data from ElasticSearch.
Method: POST
URL: /index
Takes a json of the form
{
"content" : "<Message Content>"
}
It takes the message and indexes it to ElasticSearch and add this message to Redis
Method: GET
URL: /index
retrieves all the messages added.
Method: GET
URL: /search/
Takes the and searches over existing messages in ElasticSearch and return a json with the results.