Salary-API icon indicating copy to clipboard operation
Salary-API copied to clipboard

Chicago city employees Salary API built in one hour with Python and Flask under 35 lines of code

REST API

what is this?

simple api example using flask. a flask api object contains one or more functionalities (GET, POST, etc).

install

pip install -r requirements.txt

run

python app.py

then go to http://localhost:5000/departments

you could drill down by deparments too!

try http://localhost:5000/dept/police