diff --git a/ellar_cli/__init__.py b/ellar_cli/__init__.py index 74e83e0..2ce65e5 100644 --- a/ellar_cli/__init__.py +++ b/ellar_cli/__init__.py @@ -1,3 +1,3 @@ """Ellar CLI Tool for Scaffolding Ellar Projects, Modules and also running Ellar Commands""" -__version__ = "0.3.6" +__version__ = "0.3.7" diff --git a/ellar_cli/scaffolding/module_template/module_name/controllers.ellar b/ellar_cli/scaffolding/module_template/module_name/controllers.ellar index 7eac2cd..7f0d366 100644 --- a/ellar_cli/scaffolding/module_template/module_name/controllers.ellar +++ b/ellar_cli/scaffolding/module_template/module_name/controllers.ellar @@ -2,7 +2,7 @@ Define endpoints routes in python class-based fashion example: -@Controller("/dogs", tag="Dogs", description="Dogs Resources") +@Controller("/dogs", name="Dogs") class MyController(ControllerBase): @get('/') def index(self): diff --git a/ellar_cli/scaffolding/module_template/module_name/module.ellar b/ellar_cli/scaffolding/module_template/module_name/module.ellar index ee8cdbb..0ce7c11 100644 --- a/ellar_cli/scaffolding/module_template/module_name/module.ellar +++ b/ellar_cli/scaffolding/module_template/module_name/module.ellar @@ -9,7 +9,7 @@ routers=(routerA, routerB) statics='statics', template='template_folder', - # base_directory -> default is the `{{module_name}}` folder + base_directory=`default is the `{{module_name}}` folder` ) class MyModule(ModuleBase): def register_providers(self, container: Container) -> None: diff --git a/ellar_cli/scaffolding/module_template/module_name/routers.ellar b/ellar_cli/scaffolding/module_template/module_name/routers.ellar index a77ac7c..f9dc7b7 100644 --- a/ellar_cli/scaffolding/module_template/module_name/routers.ellar +++ b/ellar_cli/scaffolding/module_template/module_name/routers.ellar @@ -2,7 +2,7 @@ Define endpoints routes in python function fashion example: -my_router = ModuleRouter("/cats", tag="Cats", description="Cats Resource description") +my_router = ModuleRouter("/cats", name="Cats") @my_router.get('/') def index(request: Request): @@ -10,4 +10,3 @@ def index(request: Request): """ from ellar.common import ModuleRouter - diff --git a/ellar_cli/scaffolding/module_template/module_name/schemas.ellar b/ellar_cli/scaffolding/module_template/module_name/schemas.ellar index 04f6b02..69d3e51 100644 --- a/ellar_cli/scaffolding/module_template/module_name/schemas.ellar +++ b/ellar_cli/scaffolding/module_template/module_name/schemas.ellar @@ -6,11 +6,5 @@ class ASampleDTO(Serializer): name: str age: t.Optional[int] = None -for dataclasses, Inherit from DataclassSerializer - -@dataclass -class ASampleDTO(DataclassSerializer): - name: str - age: t.Optional[int] = None """ from ellar.common import Serializer