Skip to content

chatgut/post-message-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postservice

The microservice acts as a platform for efficiently storing and managing messages with the support of MongoDB, RabbitMQ, and Redis.

Running the Application with Docker

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

Docker image requirements

  • 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.

API Reference

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"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors