Skip to content

Allows the editing of a local proxy categories database via API calls

Notifications You must be signed in to change notification settings

cwoe/bc-categories-api

Repository files navigation

Local Categories API for BlueCoat/Symantec Proxies

Description

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.

Allowed Methods

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

Examples

Get current Categories Database

curl http://localhost:5000/categories.txt

Add a domain

curl -X POST http://localhost:5000/edit -F 'domain=cwoellner.com' -F 'category=HTTP_whitelist' --user admin:admin

Remove a domain

curl -X DELETE http://localhost:5000/edit -F 'domain=cwoellner.com' -F 'category=HTTP_whitelist' --user admin:admin

About

Allows the editing of a local proxy categories database via API calls

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published