-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Cecilia Wong edited this page Apr 2, 2024
·
22 revisions
| Environment | Base URL | Remark(s) |
|---|---|---|
| Local development/testing | http://localhost:5000/ | |
| On Render | https://python-webservice-demo.onrender.com | - Runs the version at master branch.- Spins down after some time of inactivity. If an API call is made when it has spun down, it will take 30-50 seconds to start up again, and the app will therefore take a significant amount of time to load data. |
| On Azure | https://python-ws-demo.azurewebsites.net/ | - Runs the version at master branch.- Using free tier. |
The full API documentation is hosted at this repository's Pages.
- API calls by the "Try it out" feature are made to the Render instance.
Local copy of API documentation for testing your local webservice instance: http://localhost:5000/api/doc
| Endpoint | HTTP Method | Description |
|---|---|---|
/ |
GET | Prints "Hello World!" |
/<name> |
GET | Prints a personalized greeting with the name provided by <name>. |
/timestwo |
POST | Multiplies a number by 2. |
/getWorkers |
POST | Retrieves a list of workers configured in a backend JSON file. |
/calculateDate |
POST | Calculates a specified number of weeks before/after a given date. |
/getSumoHonbashoSchedule |
GET | Determines the Grand Sumo Tournament schedule for a given year. |