Skip to content

kjsce-codecell/API-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published