microservice-text-chat

module
v0.0.0-...-0e27891 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2021 License: MIT

README

Microservice-Text-Chat

Text chat microservice for our online game framework.

Text chat endpoints

GET /messages/{id} Returns json data about a specific message. id=[string]

GET /conversations/{id} Returns json data about a specific conversation. id=[string]

GET /messages/conversation/{id} Returns the list of messages of a specific conversation. id=[string]

GET /health/live Returns a Status OK when live.

GET /health/ready Returns a Status OK when ready or an error when dependencies are not available.

POST /messages Add new message with specific data.
Data Params

{
  "user_id":         "string, required",
  "conversation_id": "string, required",
  "text":            "string, required",
}

POST /conversations Add new message with specific data.
Data Params

{
  "user_id": ["string, required"],
  "game_id": "string, required",
}

PUT /conversations Add new or remove users from a conversation.
Data Params

{
  "id": "string, required",
  "user_id": ["string, required"],
  "game_id": "string, required",
}

DELETE /messages/{id} Delete a message. id=[string]

DELETE /conversations/{id} Delete a conversation and all associated messages. id=[string]

Directories

Path Synopsis
cmd
pkg
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL