An user account system for managing TOSBack2.
This POST will create an account, although an administrator will need to activate the account in order to grant access to the management features.
- POST 'email' 'password' (6-20 characters) 'fullname'
- endpoint /account/create
On success returns a JWT token for use with other queries.
- POST 'email' 'password'
- endpoint /account/create
Invalidates the JWT token.
- requires X-Access-Token header
- Any HTTP method
- endpoint /account/logout
Responds with an indication of whether the user is currently logged in or not.
- requires X-Access-Token header
- Any HTTP method
- endpoint /account/status
Change name associated with account.
- POST 'fullname'
- requires X-Access-Token header
- endpoint /account/update
Sends a special code to the specified email to be used in step 2.
- POST 'email'
- endpoint /account/password/reset/step1
This step actually resets the password.
- POST 'email' 'specialCode' 'password' (6-20 characters)
- endpoint /account/password/reset/step2
Deletes a user account.
- requires X-Access-Token header
- POST
- endpoint /account/delete
Only admin users may activate accounts.
- requires X-Access-Token header
- POST 'accountToActivateId'
- endpoint /account/activate
Only admin users may deactivate accounts.
- requires X-Access-Token header
- POST 'accountToDeactivateId'
- endpoint /account/deactivate
Adds a policy document based on a URL to the suggested site list.
- optional X-Access-Token header
- POST 'tos'(url to a policy document) 'email' (optional) 'fullname' (optional)
- endpoint /site/suggest
Lists all of the suggested policies by site.
- requires X-Access-Token header
- POST
- endpoint /site/suggested
Checks for the existence of a tracked policy, returning the associated site file.
- requires X-Access-Token header
- POST 'tos' (url to a policy document)
- endpoint /site/check
Saves a rule file.
- requires X-Access-Token header
- POST 'domainId||domainName' 'docId' 'url' 'policyName'
- endpoint /site/save
Removes a doc, and a site if it is the only doc.
- requires X-Access-Token header
- POST 'domainId||domainName' 'docId'
- endpoint /site/removesuggestion
Does a clean analysis of the policies associated with a site.
- requires X-Access-Token header
- POST 'domainId||domainName'
- endpoint /site/analyze
Returns a list of sites managed by the authenticated user.
- requires X-Access-Token header
- POST
- endpoint /site/managed
Allows a manager to claim a site.
- requires X-Access-Token header
- POST 'domainId||domainName'
- endpoint /site/claim
Allows a manager to release a claim on a site.
- requires X-Access-Token header
- POST 'domainId||domainName'
- endpoint /site/release
Creates a file EPOCH_TIMESTAMP.processingrules.xml documented in the Audit API Documentation
- POST 'snapshotVersion' 'policyName' 'domainId||domainName' 'comment' (optional)
- requires X-Access-Token header
- endpoint /site/rule/create
Removes a file EPOCH_TIMESTAMP.processingrules.xml documented in the Audit API Documentation
- POST 'snapshotVersion' 'policyName' 'domainId||domainName'
- requires X-Access-Token header
- endpoint /site/rule/delete
Creates a file EPOCH_TIMESTAMP.ignore documented in the Audit API Documentation
- POST 'snapshotVersion' 'policyName' 'domainId||domainName' 'comment' (optional)
- requires X-Access-Token header
- endpoint /site/snapshot/ignore
Removes a file EPOCH_TIMESTAMP.ignore documented in the Audit API Documentation
- POST 'snapshotVersion' 'policyName' 'domainId||domainName'
- requires X-Access-Token header
- endpoint /site/snapshot/unignore
Creates a file EPOCH_TIMESTAMP.comment documented in the Audit API Documentation
- POST 'snapshotVersion' 'policyName' 'domainId||domainName' 'comment'
- requires X-Access-Token header
- endpoint /site/snapshot/comment
Removes a file EPOCH_TIMESTAMP.comment documented in the Audit API Documentation
- POST 'snapshotVersion' 'policyName' 'domainId||domainName'
- requires X-Access-Token header
- endpoint /site/snapshot/uncomment
Creates a file EPOCH_TIMESTAMP.begin documented in the Audit API Documentation
- POST 'snapshotVersion' 'policyName' 'domainId||domainName' 'comment' (optional)
- requires X-Access-Token header
- endpoint /site/snapshot/begin
Removes a file EPOCH_TIMESTAMP.begin documented in the Audit API Documentation
- POST 'snapshotVersion' 'policyName' 'domainId||domainName'
- requires X-Access-Token header
- endpoint /site/snapshot/unbegin