The initial API is implemented in 09/01/api.py. The API itself and the logic of the API is implemented in this single file: api.py. The API can be run in two manners, the first of which is by simply executing the file as a Python script.
The API can then be launched with the following:
python api.py
When run, you will initially see output similar to the following:
Starting the job listing API * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) * Restarting with statStarting the job listing API * Debugger is active! * Debugger pin code: 362-310-034
This program exposes a REST API on 127.0.0.1:5000, and we can make requests for job listings using a GET request to the path /joblisting/<joblistingid>. We can try this ...