Jaymon / endpoints

Lightweight REST api backend framework that automatically maps urls to python modules and classes
MIT License
29 stars 10 forks source link

CLI to generate controllers #108

Open Jaymon opened 4 years ago

Jaymon commented 4 years ago

so you could do something like:

$ endpoints generate modpath.Foo Bar

and it will create a file at $ENDPOINTS_PREFIX/modpath.py and $ENDPOINTS_PREFIX/__init__.py with something like:

class Foo(Controller):
    def GET(self, *args, **kwargs): pass
    def POST(self, *args, **kwargs): pass