From 6ae28870f6bd5bf1b6a8f98870878054b8d90286 Mon Sep 17 00:00:00 2001 From: marcelod6427 <167905577+marcelod6427@users.noreply.github.com> Date: Mon, 30 Nov 2026 10:18:16 -0300 Subject: [PATCH] Document the Todo blueprint Swagger UI URL (#608) --- CHANGELOG.rst | 1 + examples/todo_blueprint.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ea0152da..06cfeb86 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -38,6 +38,7 @@ Enhancements * Declare and test support for Python 3.13 and 3.14 (CPython). [python-restx] * Expand GitHub Actions and tox coverage: PyPy 3.11 with both Flask 2.x and Flask 3.x; exclude Flask 2 on 3.13/3.14 where unsupported. [python-restx] * Refresh test and release tooling (pytest, pytest-benchmark, pytest-profiling, twine) for newer interpreters. GitHub Actions pre-installs compatible ``rpds-py`` (and ``readme-renderer`` for PyPy 3.11) for PyPy jobs; tox pins ``rpds-py`` for local PyPy envs. [python-restx] + * Document the Swagger UI URL for the Todo blueprint example. (#608) [marcelod6427] .. _bug_fixes-1.3.3 Bug Fixes diff --git a/examples/todo_blueprint.py b/examples/todo_blueprint.py index 50d5c0ae..4b396c53 100644 --- a/examples/todo_blueprint.py +++ b/examples/todo_blueprint.py @@ -1,3 +1,10 @@ +"""Todo API mounted on a Flask blueprint. + +Run ``python examples/todo_blueprint.py`` from the repository root and open +http://127.0.0.1:5000/api/1/ for Swagger UI. The blueprint mounts the API at +``/api/1``, so requesting ``/`` returns 404. +""" + from flask import Flask, Blueprint from flask_restx import Api, Resource, fields