Salary is JAVA based application which creates and manages employee's salary information.
- Elasticsearch => Salary application stores information in easticsearch
The available endpoints for this application are:-
ENDPOINT | REQUEST TYPE | DESCRIPTION |
---|---|---|
/salary/search |
GET | search will fetches the salary of a user based on URL query. |
/salary/healthz |
GET | healthz will check the DB connectivity and return the status of application that whether it can serve the requests or not. |
/salary/configure/liveness |
POST | configure/liveness healthcheck will slow the response of healthcheck to simulate liveness in Kubernetes |
ENVIRONMENT VARIABLE | DESCRIPTION |
---|---|
CONFIG_FILE | Path of configuration file |
DELAY_TIME | This will delay the bootup time of the application to simulate readiness in Kubernetes |
---
# elasticsearch connection details
elasticsearch:
host: localhost
port: 9200
username: elastic
password: elastic
# Salary application api port
salary:
api_port: "8082"
# For compiling code
make build