Skip to main content

Swagger documentation for Apiruns projects.

Project description

apiruns-swagger

Swagger documentation for Apiruns projects

Install

pip install apiruns-swagger

Using

from apiruns_swagger import json_to_swagger

apiruns_schema = [
        {
            "path": "/users",
            "schema": {
                "name": {"type": "string"},
            }
        },
        {
            "path": "/inventory",
            "schema": {
                "price": {"type": "integer"},
            }
        }
    ]

servers = [{"url": "https://google.cloud.apiruns.com"}]

swagger_schema = json_to_swagger(apiruns_schema, servers=servers)

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

apiruns-swagger-0.0.6.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

apiruns_swagger-0.0.6-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

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