-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from ksummarized/00060_Implement_backend_for_a…
…_ToDo_list
- Loading branch information
Showing
32 changed files
with
1,276 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
dev: | ||
docker compose --profile hot-reload up --build --watch | ||
|
||
no-reload: | ||
docker compose --profile without-hot-reload up --build | ||
|
||
db: | ||
docker compose up db -d | ||
|
||
db_down: | ||
docker compose down db | ||
|
||
apply_migrations: | ||
@cd scripts && pwsh apply_migrations.ps1 | ||
@cd ../ | ||
|
||
.PHONY: dev no-reload db db_down apply_migrations | ||
.DEFAULT_GOAL := dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
meta { | ||
name: Create | ||
type: http | ||
seq: 1 | ||
} | ||
|
||
post { | ||
url: https://{{api_base_url}}/api/todo/items | ||
body: json | ||
auth: bearer | ||
} | ||
|
||
auth:bearer { | ||
token: {{token}} | ||
} | ||
|
||
body:json { | ||
{ | ||
"id": 1, | ||
"name": "Demo", | ||
"completed": false, | ||
"deadline": "2024-09-20T18:27:39.149Z", | ||
"notes": "hello there", | ||
"tags": [{ | ||
"id":1, | ||
"name": "star wars" | ||
}], | ||
"subtasks": [ | ||
{ | ||
"id": 2, | ||
"name": "Demo", | ||
"completed": false, | ||
"deadline": "2024-09-20T18:27:39.149Z", | ||
"notes": "hello there2", | ||
"tags": [], | ||
"subtasks": [] | ||
}, | ||
{ | ||
"id": 3, | ||
"name": "Demo3", | ||
"completed": false, | ||
"deadline": "2024-09-20T18:27:39.149Z", | ||
"notes": "hello there 3", | ||
"tags": [], | ||
"subtasks": [] | ||
} | ||
], | ||
"listId": {{listId}} | ||
} | ||
} | ||
|
||
vars:post-response { | ||
itemId: res.body.id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
meta { | ||
name: Delete | ||
type: http | ||
seq: 5 | ||
} | ||
|
||
delete { | ||
url: https://{{api_base_url}}/api/todo/items/{{itemId}} | ||
body: none | ||
auth: bearer | ||
} | ||
|
||
auth:bearer { | ||
token: {{token}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
meta { | ||
name: Get | ||
type: http | ||
seq: 3 | ||
} | ||
|
||
get { | ||
url: https://{{api_base_url}}/api/todo/items/{{itemId}} | ||
body: none | ||
auth: bearer | ||
} | ||
|
||
auth:bearer { | ||
token: {{token}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
meta { | ||
name: List | ||
type: http | ||
seq: 4 | ||
} | ||
|
||
get { | ||
url: https://{{api_base_url}}/api/todo/items | ||
body: none | ||
auth: bearer | ||
} | ||
|
||
auth:bearer { | ||
token: {{token}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
meta { | ||
name: Update | ||
type: http | ||
seq: 2 | ||
} | ||
|
||
put { | ||
url: https://{{api_base_url}}/api/todo/items/{{itemId}} | ||
body: json | ||
auth: bearer | ||
} | ||
|
||
auth:bearer { | ||
token: {{token}} | ||
} | ||
|
||
body:json { | ||
{ | ||
"id": {{itemId}}, | ||
"name": "Demo-Updated", | ||
"compleated": false, | ||
"deadline": "2024-09-20T18:27:39.149Z", | ||
"notes": "hello there", | ||
"tags": [], | ||
"subtasks": [ | ||
{ | ||
"id": 2, | ||
"name": "Demo2", | ||
"compleated": true, | ||
"deadline": "2024-09-20T18:27:39.149Z", | ||
"notes": "hello there2", | ||
"tags": [], | ||
"subtasks": [] | ||
}, | ||
{ | ||
"id": 3, | ||
"name": "Demo22", | ||
"compleated": false, | ||
"deadline": "2024-09-20T18:27:39.149Z", | ||
"notes": "hello there 3", | ||
"tags": [], | ||
"subtasks": [] | ||
} | ||
], | ||
"listId": 2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.