diff --git a/backend/bruno/KSummarized/ToDo/List/Create.bru b/backend/bruno/KSummarized/ToDo/List/Create.bru index 5632487..fc67a0d 100644 --- a/backend/bruno/KSummarized/ToDo/List/Create.bru +++ b/backend/bruno/KSummarized/ToDo/List/Create.bru @@ -5,13 +5,13 @@ meta { } post { - url: https://localhost:5000/api/todo/lists?name=kenobi + url: https://localhost:5000/api/todo/lists?name=demo body: none auth: bearer } params:query { - name: kenobi + name: demo } auth:bearer { @@ -21,3 +21,7 @@ auth:bearer { body:json { "ToDo" } + +vars:post-response { + listId: res.body.id +} diff --git a/backend/bruno/KSummarized/ToDo/List/Delete.bru b/backend/bruno/KSummarized/ToDo/List/Delete.bru index efc2a0e..599b3cc 100644 --- a/backend/bruno/KSummarized/ToDo/List/Delete.bru +++ b/backend/bruno/KSummarized/ToDo/List/Delete.bru @@ -5,7 +5,7 @@ meta { } delete { - url: https://localhost:5000/api/todo/lists/9 + url: https://localhost:5000/api/todo/lists/{{listId}} body: json auth: bearer } diff --git a/backend/bruno/KSummarized/ToDo/List/Edit.bru b/backend/bruno/KSummarized/ToDo/List/Edit.bru index c1e0e45..f03ee4f 100644 --- a/backend/bruno/KSummarized/ToDo/List/Edit.bru +++ b/backend/bruno/KSummarized/ToDo/List/Edit.bru @@ -5,7 +5,7 @@ meta { } put { - url: https://localhost:5000/api/todo/lists/5 + url: https://localhost:5000/api/todo/lists/{{listId}} body: json auth: bearer } @@ -16,6 +16,6 @@ auth:bearer { body:json { { - "name":"Vax" + "name": "Renamed" } } diff --git a/backend/bruno/KSummarized/ToDo/List/Get.bru b/backend/bruno/KSummarized/ToDo/List/Get.bru index 6fd7964..9012765 100644 --- a/backend/bruno/KSummarized/ToDo/List/Get.bru +++ b/backend/bruno/KSummarized/ToDo/List/Get.bru @@ -5,7 +5,7 @@ meta { } get { - url: https://localhost:5000/api/todo/lists/9 + url: https://localhost:5000/api/todo/lists/{{listId}} body: none auth: bearer }