Endpoints specification and Websocket url for user management and use of the PubSub service, respectively
XMPPServer Openfire
Instalation
to do
RESTApi Openfire client for user management
Basic Auth before connection, username: admin / password: ___
POST http://engserv-1-aulas.ws.atnog.av.it.pt/plugins/restapi/v1/users
{
"username": "username",
"password": "password",
"name": "User",
"email": "[email protected]”
}
DELETE http://engserv-1-aulas.ws.atnog.av.it.pt/plugins/restapi/v1/users/{username}
PUT http://engserv-1-aulas.ws.atnog.av.it.pt/plugins/restapi/v1/users/{oldUsername}
{
"username": "newusername",
"password": "newp4ssword",
"name": "newName",
"email": "[email protected]”
}
Execute
$docker run -p 8040:8040 notification:final
URL:ws://localhost:8040/websocket
{
"Type": "login",
"Data": {
"UserName": "your_username",
"Password": "your_password",
"Server": "your_host"
}
}
URL:ws://localhost:8040/websocket
{
"Type": "publish",
"Data": {
"From": "from_username",
"To": "to_username",
"Text": "content"
}
}