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:
db123-test
2026-05-05 17:44:52 +03:30
parent 0c1bbdcaf4
commit 31fc204ef2
6 changed files with 50 additions and 57 deletions

View File

@@ -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.