Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow MUC room affiliation bulk changes #105

Closed
guusdk opened this issue Jun 2, 2022 · 0 comments
Closed

Allow MUC room affiliation bulk changes #105

guusdk opened this issue Jun 2, 2022 · 0 comments

Comments

@guusdk
Copy link
Member

guusdk commented Jun 2, 2022

Currently, room affiliations can only be modified one at a time. When a lot of affiliations have to be added to a room, this requires a lot of API interaction, which is wasteful.

The plugin should offer methods to add more than one member, admin, owner or outcast with just one API call.

guusdk added a commit to guusdk/openfire-restAPI-plugin that referenced this issue Jun 2, 2022
…om affiliations

This adds three new types of endpoints:
1. return all JIDs that have a particular affiliation to a particular chatroom:
`GET /restapi/v1/chatrooms/{room}/{affiliation}?servicename=conference`

2. replace all JIDs that have a particular affiliation to a particular chatroom:
`PUT /restapi/v1/chatrooms/{room}/{affiliation}?servicename=conference`

3. add multiplple JIDs with a particular affilaition to a particular chatroom:
`POST /restapi/v1/chatrooms/{room}/{affiliation}?servicename=conference`

This should make it a lot easier to make bulk operations. Prior to this commit, changes had to be applied one-by-one.
@guusdk guusdk closed this as completed in d5b8491 Jun 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant