dappros / ethora

A 'super app' engine for your project. React Native (iOS, Android) and React.js (Web, desktop). Social Sign In 🄵, Messaging 💬 (chat, voice, push notifications), Web3 Wallet 🪪 (profile QR, documents, coins, NFT), DLT 🔐 (provenance, crypto signing), Gamification 🤩, Social Commerce and more.
https://ethora.com/
GNU Affero General Public License v3.0
429 stars 85 forks source link

API /chats/ #555

Open phwizard opened 1 month ago

phwizard commented 1 month ago

API route needs to be created or updated to allow for the following features.

Create a chat room. Delete a chat room.

Create a chat room POST /chats/ optional parameters:

When creating a new Chat, /chats/ will return the request status and if successful, JID of the newly created Chat.

In database, ownerApp record should also be created which will record which App owns this Chat.

Delete a chat room DELETE /chats/ parameters

Verify ownerApp if corresponds to the App API key / JWT. If so, delete the Chat.

Description: Delete the Chat when your business logic doesn't need it anymore. Note: all chat history will be deleted as well through this action.

More details in forum here: https://forum.ethora.com/topic/22-integrating-ethora-chat-component-users-system-with-your-existing-legacy-system/

This is to support Use Case N3 as described here: https://forum.ethora.com/topic/21-chat-component-use-cases-for-users-authentication/

phwizard commented 3 days ago

This is done except 'externalId'.