-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbug.http
More file actions
78 lines (48 loc) · 1.39 KB
/
bug.http
File metadata and controls
78 lines (48 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
### Fetch bug list
### Filter by txt
get http://127.0.0.1:3030/api/bug?txt=g
### Filter by txt & minSeverity
get http://127.0.0.1:3030/api/bug?minSeverity=3
### Sort by title
get http://127.0.0.1:3030/api/bug?sortField=title
### Sort by title descending
get http://127.0.0.1:3030/api/bug?sortField=title&sortDir=-1
### Get first page with page size=2
get http://127.0.0.1:3030/api/bug?pageIdx=0&pageSize=2
### Get first page with default page size
get http://127.0.0.1:3030/api/bug?pageIdx=0
### Get second page with default page size
get http://127.0.0.1:3030/api/bug?pageIdx=1
### Fetch a single bug
get http://127.0.0.1:3030/api/bug/nB0zw
### Delete a bug
delete http://127.0.0.1:3030/api/bug/vwx234
### Add a bug
post http://127.0.0.1:3030/api/bug
content-type: application/json
{
"title": "Having a good day",
"severity": 4,
"description": "Things be going wrong!"
}
### Update a bug
put http://127.0.0.1:3030/api/bug/EJyfl
content-type: application/json
{
"_id": "EJyfl",
"title": "Having a realy good day",
"severity": 4,
"description": "Things be going well!"
}
### Fetch users list
get http://127.0.0.1:3030/api/user
### Fetch user by id
get http://127.0.0.1:3030/api/user/u206
### Create user
post http://127.0.0.1:3030/api/auth/signup
content-type: application/json
{
"username": "Omer",
"fullname": "Omer dahan",
"password": "omer123"
}