Skip to content

cliixtech/eve-swagger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eve-Swagger

Swagger_ extension for Eve, by `popular request`_.

Current Status

Experimental playground.

Usage

from eve import Eve
from eve_swagger import swagger

app = Eve()
app.register_blueprint(swagger, url_prefix='/docs')

# You might want to simply update the eve settings module instead.
SWAGGER = {
    'info': {
        'title': 'My Supercool API',
        'version': '1.0',
        'description': 'an API description',
        'termsOfService': 'my terms of service',
        'contact': {
            'name': 'nicola',
            'url': 'http://nicolaiarocci.com'
        },
        'license': {
            'name': 'BSD',
            'url': 'https://github.com/nicolaiarocci/eve-swagger/blob/master/LICENSE',
        }
    },
    'host': 'myhost.com'
}
app.config['SWAGGER'] = SWAGGER

if __name__ == '__main__':
    app.run()

When API is up and running, visit the /docs/ endpoint.

About

Swagger extension for Eve

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 94.1%
  • CSS 5.1%
  • Other 0.8%