Skip to content

Repository files navigation

Example Petstore REST Services with Connexion 2

Example petstore REST implementation with Connexion 2 Flask, Sqlalchemy, and Marshmallow

Installation

First, you need to clone this repository:

git clone git@github.com:johnbyrne7/c2petstore.git

Or:

git clone https://github.com/johnbyrne7/c2petstore.git

Then change into the c2petstore folder:

cd c2petstore

Next, 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.txt

How to Test the Example Application

Before 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 8080

The 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/

License

This project is licensed under the MIT License (see the LICENSE file for details).

About

Example petstore REST implementation with Connexion 2 Flask,, Sqlalchemy, and Marshmallow

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages