Allows the editing of a local categories database via API calls.
This can be used to automatically resolve white-/blacklisting related tickets, if properly integrated with a ticket system.
Path | Method | Auth | Parameters | Description |
---|---|---|---|---|
/categories.txt | GET | None | None | Serve Current Database |
/edit | POST | Basic | category, domain | Add a domain to a category |
/edit | DELETE | Basic | category, domain | Remove a domain from a category |
curl http://localhost:5000/categories.txt
curl -X POST http://localhost:5000/edit -F 'domain=cwoellner.com' -F 'category=HTTP_whitelist' --user admin:admin
curl -X DELETE http://localhost:5000/edit -F 'domain=cwoellner.com' -F 'category=HTTP_whitelist' --user admin:admin