2024-05-26 02:18:12 +03:00
|
|
|
# acapair_chat_api
|
|
|
|
Acapair Chat API
|
2024-05-27 01:32:54 +03:00
|
|
|
|
|
|
|
[](https://github.com/Acapair/acapair_chat_api/actions/workflows/rust.yml)
|
|
|
|
|
|
|
|
|
|
|
|
## Exposed URLs
|
|
|
|
> ':' means they are variable.
|
|
|
|
|
|
|
|
Alive Ping(get): "/"
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
Send Message(post): "/send"
|
|
|
|
|
|
|
|
| Body Fields | Example Values |
|
|
|
|
| -------- | ------- |
|
|
|
|
| "room_id" | "Tahinli's Room -1" |
|
|
|
|
| "username" | "Tahinli" |
|
|
|
|
| "message" | "Hi!" |
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
Receive Message(get): "/receive/:room_id"
|