Skip to content

About

Collection of all the APIs created by the team as part of the API workshop

Resources

Stars

1 star

Watchers

3 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

Repository files navigation

API-workshop

made-with-python

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.

Instructions

Using Python

  1. Create a virtual environment
  2. To install dependenices of requirements.txt :
pip install -r requirements.txt
  1. 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.

  1. To view swagger documentation of APIs:

Open http://{your_url}/swagger

Steps to add more APIs:

  • 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

Contributing

Open to enhancements & bug-fixes

Note

The project was made as a resource for the participants of the workshop.

About

Collection of all the APIs created by the team as part of the API workshop

Resources

Stars

1 star

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages