Skip to main content

Generate swagger from a Cornice application

Project description

Cornice Swagger

pypi travis master-coverage slack

Cornice extension to generate OpenAPI/Swagger Specification

This module create a full OpenAPI/Swagger 2.0 compliant spec maximizing the extracted documentation data from functional code, while allowing users to directly specify parts of the spec.

Scaffold

To get easier started there is a scaffold with can be used.:

$ cookiecutter https://github.com/delijati/cookiecutter-cornice_swagger.git
$ cd demo
$ pip install -e .
$ cd demo/static
$ bower install

CHANGES

0.3.0 (2017-01-17)

Api

  • Use cornice_swagger.swagger.CorniceSwagger class to generate the swagger document rather then generate_swagger_spec.

  • Allow overriding extractors in the application.

  • Schemas are now broken into JSON pointers only if specified.

  • Allow documenting responses via response_schemas view attribute.

  • Allow documenting tags via tags view attribute or using a default_tags parameter when calling the generator.

Internals

  • Decouples converters from path generators.

  • Make considerable changes in the package organisation.

  • Reach 100% coverage on tests.

Documentation

0.2.1 (2016-12-10)

  • Check if schema is not instantiated.

  • Add support for query parameter description. [ridha]

0.2 (2016-11-08)

  • Pypi release.

  • Point scaffold doc to right url.

0.1 (2016-11-05)

  • First release for new cornice 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cornice_swagger-0.3.0.tar.gz (18.6 kB view details)

Uploaded Source

File details

Details for the file cornice_swagger-0.3.0.tar.gz.

File metadata

File hashes

Hashes for cornice_swagger-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4f69711534d74b55fea7977e52cd482403136bb9eddd3e6ca0f4f0f9f2d7b018
MD5 ab98cce5a777ce2381525f2aaafe3fcf
BLAKE2b-256 7639772860cc8992bfdb5a0fa06851354c3fe5cf839081814267479f2bf1f03a

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page