generated from nathanwoodburn/python-webserver-template
25 lines
633 B
Markdown
25 lines
633 B
Markdown
# python-webserver-template
|
|
|
|
Python3 website template including git actions
|
|
|
|
## Example `curl` Commands
|
|
|
|
### Convert Specific Time Between Two Timezones
|
|
|
|
```sh
|
|
curl -X POST http://localhost:5000/api/v1/convert -H "Content-Type: application/json" -d '{
|
|
"from_tz": "Australia/Sydney",
|
|
"to_tz": "UTC",
|
|
"time": "2023-10-10T15:00:00"
|
|
}'
|
|
```
|
|
|
|
### Convert Specific Time Between Multiple Timezones
|
|
|
|
```sh
|
|
curl -X POST http://localhost:5000/api/v1/convert_multiple -H "Content-Type: application/json" -d '{
|
|
"from_tz": "Australia/Sydney",
|
|
"time": "2023-10-10T15:00:00",
|
|
"to_tzs": ["UTC", "America/New_York", "Europe/London"]
|
|
}'
|
|
``` |