Example petstore REST implementation with Connexion 2 Flask, Sqlalchemy, and Marshmallow
First, you need to clone this repository:
git clone git@github.com:johnbyrne7/c2petstore.gitOr:
git clone https://github.com/johnbyrne7/c2petstore.gitThen change into the c2petstore folder:
cd c2petstoreNext, create a virtual environment and install all the dependencies:
python3.13 -m venv .venv # or whatever you need for python3.13
source .venv/bin/activate # on Windows, use ".venv\scripts\activate" instead
pip install -r requirements.txtBefore run the example application, make sure you have activated the virtual enviroment.
pytest tests/Or, you can run a local HTTP application like this:
flask run --port 8080The application will run on http://127.0.0.1:8080.
Use this to see the swagger documentation http://127.0.0.1:8080/api/v3/docs/
This project is licensed under the MIT License (see the LICENSE file for details).