Attendance is a microservice which is designed in Python to manage employee's attendance information.
- MySQL => Attendance application store information in MySQL database
ENVIRONMENT VARIABLE | DESCRIPTION |
---|---|
CONFIG_FILE | Path of configuration file |
The available endpoints for this application are:-
ENDPOINT | REQUEST TYPE | DESCRIPTION |
---|---|---|
/attendance/create |
POST | create endpoint collects the JSON payload of request and write the data to MySQL. |
/attendance/search |
GET | search endpoint fetch the information from MySQL server and return the JSON reponse. |
/attendance/healthz |
GET | healthz endpoint checks the DB connectivity and tells that application is ready to serve the requests or not. |
# Application port on which application will listen
mysql:
enabled: true
db_name: "attendancedb"
host: "mysql:3306"
username: root
password: password
# For compiling code
make build
# For running code locally
export CONFIG_FILE=/path/to/config.yaml
./attendance
make image