File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ cd layered-flask-todo-service/
28
28
2 . Build and run the app using Docker Compose:
29
29
30
30
``` bash
31
- docker-compose up --build
31
+ docker-compose up
32
32
```
33
33
This command will build the Docker images and start the containers for the TODO App and its associated services (e.g., the database).
34
34
Original file line number Diff line number Diff line change 4
4
5
5
logger = logging .getLogger (__name__ )
6
6
7
- api = Namespace ('todos ' , description = 'TODO operations' )
7
+ api = Namespace ('/ ' , description = 'TODO operations' )
8
8
9
9
todo_model = api .model ('TODO' , {
10
10
'id' : fields .Integer (readonly = True , description = 'The unique identifier of the todo' ),
21
21
todo_parser .add_argument ('status' , type = str , default = 'todo' )
22
22
23
23
24
- @api .route ('/<int:todo_id>' )
24
+ @api .route ('todo /<int:todo_id>' )
25
25
class TodoResource (Resource ):
26
26
@api .doc ('get_todo' )
27
27
@api .marshal_with (todo_model )
@@ -67,7 +67,7 @@ def delete(self, todo_id):
67
67
return {"message" : "An error occurred while deleting the TODO" }, 500
68
68
69
69
70
- @ api .route ('/' )
70
+ @ api .route ('/todo ' )
71
71
class TodoListResource (Resource ):
72
72
@ api .doc ('list_todos' )
73
73
@ api .marshal_list_with (todo_model )
You can’t perform that action at this time.
0 commit comments