diff --git a/flask-connexion-rest-part-1/requirements.txt b/flask-connexion-rest-part-1/requirements.txt index fa2831bf39..837bb80f35 100644 --- a/flask-connexion-rest-part-1/requirements.txt +++ b/flask-connexion-rest-part-1/requirements.txt @@ -1,21 +1,36 @@ -attrs==22.1.0 -certifi==2022.9.24 -charset-normalizer==2.1.1 -click==8.1.3 -clickclick==20.10.2 -connexion==2.14.1 -Flask==2.2.2 -idna==3.4 +a2wsgi==1.10.10 +anyio==4.15.1 +asgiref==3.12.1 +attrs==26.1.0 +blinker==1.9.0 +certifi==2026.7.22 +charset-normalizer==3.5.1 +click==8.5.0 +connexion==3.3.0 +Flask==3.1.3 +h11==0.16.0 +httpcore==1.0.9 +httptools==0.8.0 +httpx==0.28.1 +idna==3.20 inflection==0.5.1 -itsdangerous==2.1.2 -Jinja2==3.1.2 -jsonschema==4.16.0 -MarkupSafe==2.1.1 -packaging==21.3 -pyparsing==3.0.9 -pyrsistent==0.19.1 -PyYAML==6.0 -requests==2.28.1 -swagger-ui-bundle==0.0.9 -urllib3==1.26.12 -Werkzeug==2.2.2 +itsdangerous==2.2.0 +Jinja2==3.1.6 +jsonschema==4.26.0 +jsonschema-specifications==2025.9.1 +MarkupSafe==3.0.3 +python-dotenv==1.2.3 +python-multipart==0.0.32 +PyYAML==6.0.3 +referencing==0.37.0 +requests==2.34.2 +rpds-py==2026.6.3 +starlette==1.6.0 +swagger_ui_bundle==1.1.0 +typing_extensions==4.16.0 +urllib3==2.8.0 +uvicorn==0.53.0 +uvloop==0.22.1 +watchfiles==1.2.0 +websockets==17.1 +Werkzeug==3.1.8 diff --git a/flask-connexion-rest-part-1/rp_flask_api/app.py b/flask-connexion-rest-part-1/rp_flask_api/app.py index 07c00bfd21..aba646545f 100644 --- a/flask-connexion-rest-part-1/rp_flask_api/app.py +++ b/flask-connexion-rest-part-1/rp_flask_api/app.py @@ -11,4 +11,4 @@ def home(): if __name__ == "__main__": - app.run(host="0.0.0.0", port=8000, debug=True) + app.run(host="0.0.0.0", port=8000) diff --git a/flask-connexion-rest-part-1/rp_flask_api/swagger.yml b/flask-connexion-rest-part-1/rp_flask_api/swagger.yml index abd89d002b..36bb5281e9 100644 --- a/flask-connexion-rest-part-1/rp_flask_api/swagger.yml +++ b/flask-connexion-rest-part-1/rp_flask_api/swagger.yml @@ -43,12 +43,12 @@ paths: - People summary: "Create a person" requestBody: + x-body-name: "person" description: "Person to create" required: True content: application/json: schema: - x-body-name: "person" $ref: "#/components/schemas/Person" responses: "201": @@ -75,10 +75,10 @@ paths: "200": description: "Successfully updated person" requestBody: + x-body-name: "person" content: application/json: schema: - x-body-name: "person" $ref: "#/components/schemas/Person" delete: tags: