oussama / glue

APIs the sane way

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Glue, APIs Framework.

Warning: WIP

Known limitations

  • doesnt support multiple requests

TODO

  • create an ast instead of the current hacked ts gen.

    {
        validators:[
            {
                name:string,
                args:[
                    'number',
                    'string'
                ]
            }
        ],
        guards:[
            {
                name:string,
                args:[
                    'string' // type
                ]
            }
        ],
        routes:[
            {
                name:string,
                handlers:[
                    {
                        name:string,
                        method:string,
                        path:string,
                        input:{
                            name:string,
                            type:string
                        },
                        guards:[
                            {
                                name:string,
                                args:['arg1','arg2']
                            }
                        ]
                    }
                ]
            }
        ],
        objects:[
            {
                name:string,
                props:[
                    {
                        name:string,
                        type:string,
                        validations:[
                            {
                                name:string,
                                args:['arg1','arg2']
                            }
                        ]
                    }
                ]
            }
        ]
    }
    

About

APIs the sane way


Languages

Language:TypeScript 93.1%Language:API Blueprint 5.2%Language:JavaScript 0.9%Language:Rust 0.8%