endpoints icon indicating copy to clipboard operation
endpoints copied to clipboard

CLI to generate controllers

Open Jaymon opened this issue 3 years ago • 0 comments

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

Jaymon avatar Aug 02 '20 01:08 Jaymon