API Endpoints
calculator
This module expose endpoints with main app features
addition(a, b)
async
Performs the addition of two float values
| Returns: |
|
|---|
Source code in src/api/calculator.py
13 14 15 16 17 18 19 20 | |
divide(a, b)
async
Performs the division of two float values. Response model is None due to conditional float | ZeroDivisionError is not supported by pydantic.
| Returns: |
|
|---|
Source code in src/api/calculator.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | |
multiply(a, b)
async
Performs the multiplication of two float values
| Returns: |
|
|---|
Source code in src/api/calculator.py
33 34 35 36 37 38 39 40 | |
substraction(a, b)
async
Performs the substraction of two float values
| Returns: |
|
|---|
Source code in src/api/calculator.py
23 24 25 26 27 28 29 30 | |
health
API Health endpoints used to monitor the application from external tools and applications
get_health()
async
Returns a dictionary with internal app status
| Returns: |
|
|---|
Source code in src/api/health.py
12 13 14 15 16 17 18 19 | |