The microservice acts as a platform for efficiently storing and managing messages with the support of MongoDB, RabbitMQ, and Redis.
This application runs on port 8000.
To run the application using Docker pull the Docker Image:
docker pull hacee/post-message-service:v1.0.0- MongoDB running on port 27017
- Redis running on port 6379
- RabbitMQ running on port 5672 for operation and port 15672 for accessing the management interface.
Get all messages
Retrieve all stored messages.
http://localhost:8000/posts
Get message by ID
Retrieve a message by its unique identifier.
http://localhost:8000/posts/{id}
Create message
Create a new message.
http://localhost:8000/posts
Delete message by ID
Delete a message by its unique identifier.
http://localhost:8000/posts/{id}
Request body in JSON format
Example:
{
"from": "Sender",
"to": "Receiver",
"message": "Text message"
}