Skip to content

Commit e5a1809

Browse files
authored
Update README.md
1 parent 9612e7c commit e5a1809

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ ellar create-module car
8282
```
8383

8484
## Add Schema
85-
In `car.schema.py`, lets add some serializer for car input and output data
85+
In `car/schema.py`, lets add some serializer for car input and output data
8686
```python
8787
from ellar.serializer import Serializer
8888

@@ -97,7 +97,7 @@ class RetrieveCarSerializer(CarSerializer):
9797
```
9898

9999
## Add Services
100-
In `car.services.py`, lets create a dummy repository `CarDummyDB` to manage our car data.
100+
In `car/services.py`, lets create a dummy repository `CarDummyDB` to manage our car data.
101101
```python
102102
import typing as t
103103
import uuid
@@ -150,7 +150,7 @@ class CarDummyDB:
150150
return self._data.pop(idx)
151151
```
152152
## Add Controller
153-
In `car.controllers.py`, lets create `CarController`
153+
In `car/controllers.py`, lets create `CarController`
154154

155155
```python
156156
import typing as t
@@ -198,7 +198,7 @@ class CarController(ControllerBase):
198198

199199
```
200200
## Register Service and Controller
201-
In `car.module.py`, lets register `CarController` and `CarDummyDB`
201+
In `car/module.py`, lets register `CarController` and `CarDummyDB`
202202

203203
```python
204204
from ellar.common import Module
@@ -223,7 +223,7 @@ class CarModule(ModuleBase):
223223

224224

225225
## Enabling OpenAPI Docs
226-
To start up openapi, we need to go back to project folder in the `carsite.server.py`
226+
To start up openapi, we need to go back to project folder in the `server.py`
227227
then add the following below.
228228
```python
229229
import os

0 commit comments

Comments
 (0)