Collection of all the APIs created by the team as part of the API workshop conducted by KJSCE CodeCell. The architecture and working of APIs was explained and the students were guided to create their own APIs by the end of the workshop.
Using Python
- Create a virtual environment
- To install dependenices of
requirements.txt
:
pip install -r requirements.txt
- To run the flask server:
python3 app.py
Using Docker
docker build . -t apiworkshop
docker run -p 5000:5000 apiworkshop
Open http://localhost:5000/ to view details for using all the API endpoints implemented.
- To view swagger documentation of APIs:
Open http://{your_url}/swagger
- Create a .py file as
/apis/<api_name>.py
- Configure the API routes in the script.(Refer
/apis/test.py
. Don't forget to add the/docs
endpoint) - Import the Flask Blueprint object in
/apis/__init__.py
- Import and register the blueprints in
app.py
Open to enhancements
& bug-fixes
The project was made as a resource for the participants of the workshop.