Skip to content
Cecilia Wong edited this page Mar 25, 2024 · 22 revisions

Environments

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.

Endpoints

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.

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

Clone this wiki locally