-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.json
88 lines (88 loc) · 2.3 KB
/
test.json
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
79
80
81
82
83
84
85
86
87
88
{
"info": {
"_postman_id": "your_collection_id",
"name": "Your API Collection",
"description": "A collection of API requests for testing.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "signup test user",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{ \"username\": \"test1\", \"password\": \"Test1@Test1@\", \"firstName\": \"Test\", \"lastName\": \"Test\", \"type\":\"Basic\" }"
},
"url": {
"raw": "http://143.110.208.50:3000/api/users/signup",
"protocol": "http",
"host": ["143.110.208.50"],
"port": "3000",
"path": ["api", "users", "signup"]
}
},
"response": []
},
{
"name": "login test user",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"username\": \"test1\",\"password\": \"Test1@Test1@\"}"
},
"url": {
"raw": "http://143.110.208.50:3000/api/users/login",
"protocol": "http",
"host": ["143.110.208.50"],
"port": "3000",
"path": ["api", "users", "login"]
}
},
"response": []
},
{
"name": "GET Request to Logout Endpoint",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://143.110.208.50:3000/api/users/logout",
"protocol": "http",
"host": ["143.110.208.50"],
"port": "3000",
"path": ["api", "users", "logout"]
}
},
"response": []
},
{
"name": "DELETE Request to Delete User by Username",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://143.110.208.50:3000/api/users/username=test1",
"protocol": "http",
"host": ["143.110.208.50"],
"port": "3000",
"path": ["api", "users", "username=test1"]
}
},
"response": []
}
]
}