Skip to main content

Create an intermediate representation of an api schema, that can be used to generate code.

Project description

API schemas

Create an intermediate representation of an api schema, that can be used to generate code.

Example API schema

typedef object MyData
    name: str
    ?an_enum: {SUCCESS, FAILURE} Status # Optional enum 
    an_array[]: object People
        name: str   # comments are also possible
        *: str  # wildcards allow any string as key

server = http://localhost:5000/api/v1

people
    uri: /people/<name>
    GET
        ->
        <-
            200
                data: $MyData
            404
                err_msg: str
            500
                err_msg: str

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

api_schemas-0.1.1.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

api_schemas-0.1.1-py3-none-any.whl (5.2 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