Spaces:
Sleeping
Sleeping
|
Download docs/API_REFERENCE.md from Scikitlearn10801/test_env: direct link, hf CLI and curl.
- Browser
- Download file 669 Bytes
-
https://huggingface.co/spaces/Scikitlearn10801/test_env/resolve/main/docs/API_REFERENCE.md
- Command line
-
hf download hf://spaces/Scikitlearn10801/test_env/docs/API_REFERENCE.md
-
curl -L -o API_REFERENCE.md https://huggingface.co/spaces/Scikitlearn10801/test_env/resolve/main/docs/API_REFERENCE.md
669 Bytes
📡 Mock API Reference
The DataPrivacyEnv simulates a RESTful API. Below are the available endpoints for the agent.
| Endpoint | Method | Payload | Description |
|---|---|---|---|
/users |
GET |
N/A | Returns list of all user profiles. |
/users/{id} |
PATCH |
{"remove_fields": ["field"]} |
Removes specific sensitive metadata. |
/users/{id} |
DELETE |
N/A | Completely removes a user record. |
/logs |
GET |
N/A | Returns system logs containing potential PII. |
/logs/{id} |
PATCH |
{"text": "REDACTED"} |
Overwrites log text with a placeholder. |
/logs/{id} |
DELETE |
N/A | Removes an orphaned log entry. |