File tree 1 file changed +47
-0
lines changed
1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -21,4 +21,51 @@ Run this command in the application directory to run the test suite, make sure A
21
21
> make test
22
22
```
23
23
24
+ ## API
25
+
26
+ ### Projects
27
+ Get all projects
28
+ ``` bash
29
+ > http http://localhost:8080/projects
30
+ ```
31
+
32
+ Create a project
33
+ ``` bash
34
+ > http -f POST http://localhost:8080/projects name=test
35
+ ```
36
+
37
+ Edit the project
38
+ ``` bash
39
+ > http -f PUT http://localhost:8080/projects/1 name=test1
40
+ ```
41
+
42
+ Remove the project
43
+ ``` bash
44
+ > http DELETE http://localhost:8080/projects/1
45
+ ```
46
+
47
+ ### Tasks
48
+ Get all tasks
49
+ ``` bash
50
+ > http http://localhost:8080/tasks
51
+ ```
52
+
53
+ Create a task
54
+ ``` bash
55
+ > http -f POST http://localhost:8080/tasks name=test description=test-task project=1 ' tag[]' =tag1 ' tag[]' =tag2
56
+ ```
57
+
58
+ Edit the task
59
+ ``` bash
60
+ > http -f PUT http://localhost:8080/tasks/1 name=test1
61
+ ```
62
+
63
+ Remove the task
64
+ ``` bash
65
+ > http DELETE http://localhost:8080/tasks/1
66
+ ```
67
+
68
+
69
+ > The ** [ http] ( https://httpie.org/ ) ** tool
70
+
24
71
That's it!
You can’t perform that action at this time.
0 commit comments