File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -66,3 +66,23 @@ sudo chown -R $user: docker
6666```
6767
6868Where ` $user ` is your Docker user.
69+
70+ ## Testing the server
71+
72+ # Create a task:
73+
74+ ``` bash
75+ $ curl --location --request POST ' http://localhost:8000/api/create-task' \
76+ --header ' Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2duaXRvOnVzZXJuYW1lIjoiam9obkBkb2UuY29tIn0.6UvNP3lIrXAinXYqH4WzyNrYCxUFIRhAluWyAxcCoUc' \
77+ --header ' Content-Type: application/json' \
78+ --data-raw ' {
79+ "title": "Jump"
80+ }'
81+ ```
82+
83+ # List open tasks:
84+
85+ ``` bash
86+ curl --location --request GET ' http://localhost:8000/api/open-tasks' \
87+ --header ' Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2duaXRvOnVzZXJuYW1lIjoiam9obkBkb2UuY29tIn0.6UvNP3lIrXAinXYqH4WzyNrYCxUFIRhAluWyAxcCoUc'
88+ ```
You can’t perform that action at this time.
0 commit comments