-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathroutes.http
95 lines (66 loc) · 1.55 KB
/
routes.http
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
89
90
91
92
93
94
95
//root
GET http://127.0.0.1:8000/
content-type: application/json
Authorization: NCJ58s1v59WjGKF3X7uYdeNA1413
#####
//user create
POST http://127.0.0.1:8000/user/create
content-type: application/json
Authorization: jwoZpAOV5KVuYUyjmCSwEJL0vie2
{
"name": "asdfg",
"email": "[email protected]"
}
#####
//user profile
POST http://127.0.0.1:8000/user/profile
content-type: application/json
Authorization: XAvpYLfU9eTCTfCkEvQIH8nXpy62
#####
//update profile
POST http://127.0.0.1:8000/user/updateProfile
content-type: application/json
Authorization: 1WY5rkgkXXcxP8kTURGthQBz44l1
{
"userName":"absgdhfki"
}
#####
//leaderboard
POST http://127.0.0.1:8000/user/leaderboard
content-type: application/json
#####
//Get All Questions
POST http://127.0.0.1:8000/user/getAllQuestions
content-type: application/json
Authorization: 1WY5rkgkXXcxP8kTURGthQBz44l1
#####
//Check Answer
POST http://127.0.0.1:8000/user/checkFlag
content-type: application/json
Authorization: T6PhQtPMfxdRRRxqCZXEQCT4HGv2
{
"id": "22258tk9zelzvg",
"flag": "CTF{flag1}"
}
#####
//Fetch Hint
POST http://127.0.0.1:8000/user/hint
content-type: application/json
Authorization: 1WY5rkgkXXcxP8kTURGthQBz44l1
{
"questionID": "22258tk9zelzvg"
}
#####
//create a Questions
POST http://127.0.0.1:8000/tigerTeam/create
content-type: application/json
{
"name": "QuesOne",
"url": "https://testurl.com",
"hint": "testH9int",
"description": "testDesc",
"flag": "CTF{This_is_a_flag}",
"secret": "Enigma is better than Riddler",
"latitude": "12.56",
"longitude": "48.46"
}