From aecc367e352abfb290bea31175a85768374795ba Mon Sep 17 00:00:00 2001 From: hjacobs Date: Fri, 22 Jan 2016 22:33:32 +0100 Subject: [PATCH] fix flaskConnexion README template to use correct URLs (contextPath is "/v2" for pet store) --- .../src/main/resources/flaskConnexion/README.mustache | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/flaskConnexion/README.mustache b/modules/swagger-codegen/src/main/resources/flaskConnexion/README.mustache index 7e80a2086ef..cc7805c9b97 100644 --- a/modules/swagger-codegen/src/main/resources/flaskConnexion/README.mustache +++ b/modules/swagger-codegen/src/main/resources/flaskConnexion/README.mustache @@ -3,25 +3,26 @@ ## Overview This server was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [OpenAPI-Spec](https://github.com/swagger-api/swagger-core/wiki) from a remote server, you can easily generate a server stub. This -is an example of building a swagger-enabled flask server. +is an example of building a swagger-enabled Flask server. -This example uses the [connexion](https://github.com/zalando/connexion) library on top of Flask. +This example uses the [Connexion](https://github.com/zalando/connexion) library on top of Flask. To run the server, please execute the following: ``` +sudo pip3 install -U connexion # install Connexion from PyPI python3 app.py ``` and open your browser to here: ``` -http://localhost:{{serverPort}}/ui +http://localhost:{{serverPort}}{{contextPath}}/ui/ ``` -Your swagger definition lives here: +Your Swagger definition lives here: ``` -http://localhost:{{serverPort}}{{basePathWithoutHost}}/swagger.json +http://localhost:{{serverPort}}{{contextPath}}/swagger.json ```