Giter Site home page Giter Site logo

nevins-b / flask-restless-swagger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mickael-ange/flask-restless-swagger

0.0 2.0 1.0 7.1 MB

Magically create swagger documentation as you magically create your RESTful API

License: BSD 2-Clause "Simplified" License

Makefile 9.62% Python 90.38%

flask-restless-swagger's Introduction

============================= flask-restless-swagger-2

Magically create Swagger_ documentation as you magically create your RESTful API with Flask-Restless_

This has lingered a while without the love it needs due to other more pressing projects. Contributions are welcome and appreciated.

This is my fork of flask-restless-swagger. It had several bugs and also lackluster doc. To install:

pip install flask-restless-swagger-2

To use import like so

from flask_restless_swagger import SwagAPIManager as APIManager

Using this, you replace your current flask-restless APIManager usage with the swagg'd one

Run your flask app, and then go to localhost:5000/swagger

You can see the generated swagger json in localhost:5000/swagger.json

Features

This strives to be a drop in replacement for Flask-Restless_' APIManager. It wraps the APIManager calls to try to gather enough information to present a Swagger_ 2.0 file. It also deploys the static content for the Swagger-UI configured to point to said Swagger_ JSON file.

Status

Currently it "works-for-me". There are a few terrible assumptions it makes. It probably needs some more features to be usable for everyone. Suggestions, and pull requests are welcome.

TODO

  • Add Docstrings in Models as descriptions
  • Cleanup Markup
  • Make it suck less

.. _Flask-Restless: https://flask-restless.readthedocs.org/en/latest/ .. _Swagger: http://swagger.io

flask-restless-swagger's People

Contributors

greengiant avatar lucassimonelli avatar mickael-ange avatar mmessmore avatar nevins-jask avatar therealryanbonham avatar

Watchers

 avatar  avatar

Forkers

kn0wm4d

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.