Skip to content

Commit c3cf5b8

Browse files
committed
scaffold file hint updates
1 parent b8ac091 commit c3cf5b8

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

ellar_cli/scaffolding/module_template/module_name/controllers.ellar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Define endpoints routes in python class-based fashion
33
example:
44

5-
@Controller("/dogs", tag="Dogs", description="Dogs Resources")
5+
@Controller("/dogs", name="Dogs")
66
class MyController(ControllerBase):
77
@get('/')
88
def index(self):

ellar_cli/scaffolding/module_template/module_name/module.ellar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
routers=(routerA, routerB)
1010
statics='statics',
1111
template='template_folder',
12-
# base_directory -> default is the `{{module_name}}` folder
12+
base_directory=`default is the `{{module_name}}` folder`
1313
)
1414
class MyModule(ModuleBase):
1515
def register_providers(self, container: Container) -> None:

ellar_cli/scaffolding/module_template/module_name/routers.ellar

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
Define endpoints routes in python function fashion
33
example:
44

5-
my_router = ModuleRouter("/cats", tag="Cats", description="Cats Resource description")
5+
my_router = ModuleRouter("/cats", name="Cats")
66

77
@my_router.get('/')
88
def index(request: Request):
99
return {'detail': 'Welcome to Cats Resource'}
1010
"""
1111

1212
from ellar.common import ModuleRouter
13-

ellar_cli/scaffolding/module_template/module_name/schemas.ellar

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,5 @@ class ASampleDTO(Serializer):
66
name: str
77
age: t.Optional[int] = None
88

9-
for dataclasses, Inherit from DataclassSerializer
10-
11-
@dataclass
12-
class ASampleDTO(DataclassSerializer):
13-
name: str
14-
age: t.Optional[int] = None
159
"""
1610
from ellar.common import Serializer

0 commit comments

Comments
 (0)