-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREDZAuthApi.http
More file actions
170 lines (120 loc) · 2.91 KB
/
REDZAuthApi.http
File metadata and controls
170 lines (120 loc) · 2.91 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
@REDZAuthApi_HostAddress = https://localhost:7001
### Authentication Endpoints
# Register a new user
POST {{REDZAuthApi_HostAddress}}/api/auth/register
Content-Type: application/json
{
"username": "testuser",
"password": "password123",
"key": "MENSAL-ABCD-1234",
"hwid": "device-hwid-here",
"ip": "192.168.1.1"
}
###
# Login user
POST {{REDZAuthApi_HostAddress}}/api/auth/login
Content-Type: application/json
{
"username": "testuser",
"password": "password123",
"hwid": "device-hwid-here",
"ip": "192.168.1.1"
}
###
### License Management Endpoints
# Generate a new license key
POST {{REDZAuthApi_HostAddress}}/api/license/generate?plan=mensal
###
# Create a custom license key
POST {{REDZAuthApi_HostAddress}}/api/license/custom?customKey=CUSTOM-KEY-123&plan=mensal
###
# Generate license key (alternative endpoint)
POST {{REDZAuthApi_HostAddress}}/api/key/generate?plan=anual
###
# Create custom license key (alternative endpoint)
POST {{REDZAuthApi_HostAddress}}/api/key/custom?plan=lifetime&customKey=LIFETIME-KEY-456
###
# List all license keys
GET {{REDZAuthApi_HostAddress}}/api/key/list
###
# List unused monthly keys
GET {{REDZAuthApi_HostAddress}}/api/key/list?plan=mensal&used=false
###
# List keys created in date range
GET {{REDZAuthApi_HostAddress}}/api/key/list?fromDate=2024-01-01&toDate=2024-12-31
###
### Admin Endpoints
# Reset HWID for a user
POST {{REDZAuthApi_HostAddress}}/api/admin/reset-hwid?username=testuser
###
# Reset HWID (alternative endpoint)
POST {{REDZAuthApi_HostAddress}}/api/hwid/reset
Content-Type: application/json
{
"username": "testuser"
}
###
### Blacklist Management
# Ban a user
POST {{REDZAuthApi_HostAddress}}/api/ban
Content-Type: application/json
{
"username": "testuser",
"banUser": true,
"banIP": false,
"banHWID": false,
"reason": "Violation of terms of service"
}
###
# Ban an IP address
POST {{REDZAuthApi_HostAddress}}/api/ban
Content-Type: application/json
{
"ip": "192.168.1.100",
"banUser": false,
"banIP": true,
"banHWID": false,
"reason": "Suspicious activity detected"
}
###
# Ban a HWID
POST {{REDZAuthApi_HostAddress}}/api/ban
Content-Type: application/json
{
"hwid": "suspicious-hwid-here",
"banUser": false,
"banIP": false,
"banHWID": true,
"reason": "Multiple account violations"
}
###
# Unban a user
POST {{REDZAuthApi_HostAddress}}/api/unban
Content-Type: application/json
{
"username": "testuser",
"unbanUser": true,
"unbanIP": false,
"unbanHWID": false,
"reason": "Appeal approved"
}
###
# Unban an IP address
POST {{REDZAuthApi_HostAddress}}/api/unban
Content-Type: application/json
{
"ip": "192.168.1.100",
"unbanUser": false,
"unbanIP": true,
"unbanHWID": false,
"reason": "False positive - IP cleared"
}
###
### Status Page
# Check API status
GET {{REDZAuthApi_HostAddress}}/apistatus
###
### Swagger Documentation
# Access API documentation
GET {{REDZAuthApi_HostAddress}}/swagger
###