Controller
Controller
CalculateVitals
Bases: Resource
Flask RESTful resource for calculating vitals.
Source code in redesign_pipeline/controller.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | |
get()
Handle GET requests for retrieving estimates from the global queue.
Returns:
| Name | Type | Description |
|---|---|---|
Response |
The response containing the estimates. |
Source code in redesign_pipeline/controller.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | |
post()
Handle POST requests for calculating vitals.
Returns:
| Name | Type | Description |
|---|---|---|
Response |
The response containing the result of the request. |
Source code in redesign_pipeline/controller.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |
allowed_file(filename)
Check if a file has an allowed extension.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename |
str
|
The name of the file. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
True if the file has an allowed extension, False otherwise. |
Source code in redesign_pipeline/controller.py
15 16 17 18 19 20 21 22 23 24 25 26 | |