Skip to content

Commit

Permalink
Merge pull request #73 from python-ellar/scaffold_hint_update
Browse files Browse the repository at this point in the history
scaffold file hint updates
  • Loading branch information
eadwinCode authored Feb 19, 2024
2 parents b8ac091 + 1a8028d commit 04e36b6
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ellar_cli/__init__.py
Original file line number Diff line number Diff line change
@@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
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):
return {'detail': 'Welcome to Cats Resource'}
"""

from ellar.common import ModuleRouter

Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 04e36b6

Please sign in to comment.