refactor: rename entry field to ip across whitelist API
Rename the `entry` field to `ip` throughout the whitelist API for clarity and consistency. This affects API request/response bodies, path parameters, OpenAPI spec, documentation, and database queries in the audit log endpoint.
This commit is contained in:
@@ -79,7 +79,7 @@ Add a permanent whitelisted IP or CIDR range.
|
||||
|
||||
```json
|
||||
{
|
||||
"entry": "1.2.3.4"
|
||||
"ip": "1.2.3.4"
|
||||
}
|
||||
```
|
||||
|
||||
@@ -91,7 +91,7 @@ Add a permanent whitelisted IP or CIDR range.
|
||||
curl -X POST http://127.0.0.1:8080/api/whitelist/perm \
|
||||
-H "Authorization: Bearer CHANGE_ME" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"entry":"203.0.113.10"}'
|
||||
-d '{"ip":"203.0.113.10"}'
|
||||
```
|
||||
|
||||
### GET /api/whitelist/perm/list
|
||||
@@ -112,7 +112,7 @@ List all currently active permanent whitelisted IPs.
|
||||
```json
|
||||
[
|
||||
{
|
||||
"entry": "203.0.113.10"
|
||||
"ip": "203.0.113.10"
|
||||
}
|
||||
]
|
||||
```
|
||||
@@ -124,7 +124,7 @@ curl -X GET "http://127.0.0.1:8080/api/whitelist/perm/list?limit=50&offset=0" \
|
||||
-H "Authorization: Bearer CHANGE_ME"
|
||||
```
|
||||
|
||||
### DELETE /api/whitelist/perm/{entry}
|
||||
### DELETE /api/whitelist/perm/{ip}
|
||||
|
||||
Remove a permanent whitelisted IP or CIDR range.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user