Metadata-Version: 2.1
Name: api-schemas
Version: 0.1.0
Summary: Create an intermediate representation of an api schema, that can be used to generate code.
Author: JulianSobott
Author-email: julian.sobott@deutschebahn.com
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: lark-parser (>=0.11.2,<0.12.0)
Description-Content-Type: text/markdown

# 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

```
