# Python REST APIs With Flask, Connexion, and SQLAlchemy - Part 1

DevFeed: [Python REST APIs With Flask, Connexion, and SQLAlchemy - Part 1](<https://devfeed.tech/articles/python-rest-apis-with-flask-connexion-and-sqlalchemy-part-1-100399.md>)

Original publisher: [Read original article](<https://realpython.com/flask-connexion-rest-api/>)

Author: Philipp Acsany

Published: 2026-10-25T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [REST API](<https://devfeed.tech/topics/rest-api.md>), [Flask](<https://devfeed.tech/topics/flask.md>), [OpenAPI Specification](<https://devfeed.tech/topics/openapi.md>), [Swagger](<https://devfeed.tech/topics/swagger.md>)

Tags: [2022](<https://devfeed.tech/tags/2022.md>), [about](<https://devfeed.tech/tags/about.md>), [added](<https://devfeed.tech/tags/added.md>), [airplay](<https://devfeed.tech/tags/airplay.md>), [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [application](<https://devfeed.tech/tags/application.md>), [build](<https://devfeed.tech/tags/build.md>), [flask](<https://devfeed.tech/tags/flask.md>), [foundation](<https://devfeed.tech/tags/foundation.md>), [python](<https://devfeed.tech/tags/python.md>), [rest](<https://devfeed.tech/tags/rest.md>), [rest-api](<https://devfeed.tech/tags/rest-api.md>), [rest-apis](<https://devfeed.tech/tags/rest-apis.md>), [series](<https://devfeed.tech/tags/series.md>), [sqlalchemy](<https://devfeed.tech/tags/sqlalchemy.md>), [swagger](<https://devfeed.tech/tags/swagger.md>), [this](<https://devfeed.tech/tags/this.md>), [ui](<https://devfeed.tech/tags/ui.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

The tutorial builds a Flask REST API for managing people, using Connexion to connect OpenAPI definitions to Python functions and generate interactive Swagger UI documentation. It starts with a virtual environment, Flask app, and SQLite as a planned later component, but this part stores records in an in-memory dictionary keyed by unique, case-sensitive last names; changes disappear when the app restarts. The OpenAPI file defines collection and individual-person routes, while handlers list, create, read, update, and delete records. The guide notes that Connexion runs the app with Uvicorn, so it uses `reload=True` and an import string instead of Flask's `debug=True`. Part two is intended to add persistent database storage.

## Source excerpt

Build a Flask REST API with Connexion and Swagger UI in this three-part series. Part one lays the foundation of your application.