Rules:
/Private/username/
curl -XPOST \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA", "description": "Topic Description"}' \
https://<tatHostname>:<tatPort>/topic
curl -XDELETE \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
https://<tatHostname>:<tatPort>/topic/subtopic
Only for Tat Admin and administrators on topic.
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA"}' \
https://<tatHostname>:<tatPort>/topic/truncate
Only for Tat Admin and administrators on topic.
Set “tags” attribute on topic, with an array of all tags used in this topic. One entry in “tags” attribute per text of tag.
Topic’s tags are showed with :
GET https://
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA"}' \
https://<tatHostname>:<tatPort>/topic/compute/tags
Example of usage of tags attribute: autocompletion of tag on UI when written new message on a topic
Only for Tat Admin and administrators on topic.
Set “labels” attribute on topic, with an array of all labels used in this topic. One entry in “labels” attribute per text & color of label.
Topic’s labels are showed with :
GET https://
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA"}' \
https://<tatHostname>:<tatPort>/topic/compute/labels
Example of usage of labels attribute: label autocompletion on UI when adding new label
Only for Tat Admin.
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
https://<tatHostname>:<tatPort>/topics/compute/tags
Only for Tat Admin.
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
https://<tatHostname>:<tatPort>/topics/compute/labels
Only for Tat Admin and for attributes isAutoComputeTags and isAutoComputeLabels.
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"paramName":"isAutoComputeLabels","paramValue":"false"}' \
https://<tatHostname>:<tatPort>/topics/param
Only for Tat Admin and administrators on topic.
Truncate “tags” attribute on topic.
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA"}' \
https://<tatHostname>:<tatPort>/topic/tags/truncate
Only for Tat Admin and administrators on topic.
Truncate “labels” attribute on topic.
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA"}' \
https://<tatHostname>:<tatPort>/topic/labels/truncate
curl -XGET https://<tatHostname>:<tatPort>/topic/topicName | python -m json.tool
curl -XGET https://<tatHostname>:<tatPort>/topic/topicName/subTopic | python -m json.tool
curl -XGET https://<tatHostname>:<tatPort>/topics?skip=<skip>&limit=<limit> | python -m json.tool
curl -XGET https://<tatHostname>:<tatPort>/topics?skip=<skip>&limit=<limit>&argName=valName&arg2Name=val2Name | python -m json.tool
curl -XGET https://<tatHostname>:<tatPort>/topics?skip=0&limit=100 | python -m json.tool
For admin of topic or on /Private/username/*
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA", "key": "keyOfParameter", "value": "valueOfParameter", "recursive": "false"}' \
https://<tatHostname>:<tatPort>/topic/add/parameter
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA", "key": "keyOfParameter", "recursive": "false"}' \
https://<tatHostname>:<tatPort>/topic/remove/parameter
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA", "username": "usernameToAdd", "recursive": "false"}' \
https://<tatHostname>:<tatPort>/topic/add/rouser
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA", "username": "usernameToAdd", "recursive": "false"}' \
https://<tatHostname>:<tatPort>/topic/add/rwuser
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA", "username": "usernameToAdd", "recursive": "false"}' \
https://<tatHostname>:<tatPort>/topic/add/adminuser
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA", "username": "usernameToRemove", "recursive": "false"}' \
https://<tatHostname>:<tatPort>/topic/remove/rouser
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA", "username": "usernameToRemove", "recursive": "false"}' \
https://<tatHostname>:<tatPort>/topic/remove/wuser
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA", "username": "usernameToRemove", "recursive": "false"}' \
https://<tatHostname>:<tatPort>/topic/remove/adminuser
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA", "groupname": "groupnameToAdd", "recursive": "false"}' \
https://<tatHostname>:<tatPort>/topic/add/rogroup
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA", "groupname": "groupnameToAdd", "recursive": "false"}' \
https://<tatHostname>:<tatPort>/topic/add/rwgroup
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA", "groupname": "groupnameToAdd", "recursive": "false"}' \
https://<tatHostname>:<tatPort>/topic/add/admingroup
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA", "groupname": "groupnameToRemove", "recursive": "false"}' \
https://<tatHostname>:<tatPort>/topic/remove/rogroup
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA", "groupname": "groupnameToRemove", "recursive": "false"}' \
https://<tatHostname>:<tatPort>/topic/remove/rwgroup
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA", "groupname": "groupnameToRemove", "recursive": "false"}' \
https://<tatHostname>:<tatPort>/topic/remove/rwgroup
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic": "/topicA", "recursive": "false", "maxlength": 140, "maxreplies": 30, "canForceDate": false, "canUpdateMsg": false, "canDeleteMsg": false, "canUpdateAllMsg": false, "canDeleteAllMsg": false, "adminCanUpdateAllMsg": false, "adminCanDeleteAllMsg": false}' \
https://<tatHostname>:<tatPort>/topic/param
Parameters key is optional.
Example with key parameters :
curl -XPUT \
-H "Content-Type: application/json" \
-H "Tat_username: admin" \
-H "Tat_password: passwordAdmin" \
-d '{"topic":"/Internal/Alerts","recursive":false,"maxlength":300,"maxreplies":30,"canForceDate":false,"canUpdateMsg":false,"canDeleteMsg":true,"canUpdateAllMsg":false,"canDeleteAllMsg":false,"adminCanUpdateAllMsg":false,"adminCanDeleteAllMsg":false,"parameters":[{"key":"agileview","value":"qsdf#qsdf"},{"key":"tatwebui.view.default","value":"standardview-list"},{"key":"tatwebui.view.forced","value":""}]}' \
https://<tatHostname>:<tatPort>/topic/param