close
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Swagger generated server

Overview

This server was generated by the swagger-codegen project. By using the OpenAPI-Spec from a remote server, you can easily generate a server stub. This is an example of building a swagger-enabled Flask server.

This example uses the Connexion library on top of Flask, and pynamodb

To run the server, you must install python3, install pynamodb, install connexion, install awscli, configure awscli, create tables, and start start the server

To install pynamodb run

sudo pip3 install pynamodb

To install connexion run

sudo pip3 install -U connexion # install Connexion from PyPI

To install awscli run

sudo pip install awscli

To configure awscli run and enter in your access key id and secret access key

aws configure

To create the tables in your dynamodb on aws run

python3 createTables.py

To start the server execute

python3 app.py

Open your browser to here for interactive documentation that makes api calls:

http://localhost:8080/api/ui/

Make api calls to

http://localhost:8080/api/

Your Swagger definition lives here:

http://localhost:8080/api/swagger.json