A Django application that serves business metrics via a REST API. This application is designed to be deployed to AWS Elastic Beanstalk.
Our metrics are automatically updated every hour.
Next refresh in:
Next refresh at:
GET /
This documentation page.
GET /ping/
Simple health check endpoint to verify the API is running.
GET /api/years-in-business/
Returns the number of years in business since April 6th, 2006.
GET /api/satisfaction-score/
Returns the current customer satisfaction score as a numerical value.
GET /api/response-time/
Returns the current average response time value.
GET /api/metrics/
Returns all available metrics with their current values and last update timestamps in a single response.
{
"success": true,
"data": {
"years_in_business": {
"value": 17.8,
"last_updated": "2025-02-24T00:27:07.123456"
},
"response_time": {
"value": 4.20,
"last_updated": "2025-02-24T00:27:07.123456"
},
"satisfaction_score": {
"value": 98.9,
"last_updated": "2025-02-24T00:27:07.123456"
}
},
"error": null,
"timestamp": "2025-02-24T00:27:07.123456"
}
All API endpoints return data in the following standardized format:
{
"success": true,
"data": 123.45,
"error": null,
"timestamp": "2023-07-21T12:34:56.789Z"
}
In case of errors, the response will include:
{
"success": false,
"data": null,
"error": "Error message description",
"timestamp": "2023-07-21T12:34:56.789Z"
}
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver