Skip to content

Mock Server for api endpoints and message queues

Notifications You must be signed in to change notification settings

Team-project-CS/ms

Repository files navigation

Maven build Docker image Deploy on server

Description

Project for mocking HTTP endpoints and Queue messages.

Consider this picture

picture1

This project can help to test communication layer between your project and external services it uses.

picture2

How to launch

Tools you need

  • Docker
  • Maven
  • Java 17

Launch script

docker network create web
mvn clean package dockerfile:build -DskipTests=true
docker-compose up -d

Documentation

After the launch you can see all the available commands in swagger auto-generated documentation

http://localhost:8082/api-docs/swagger-ui/index.html - http endpoints mock

http://localhost:8081/queue-docs/swagger-ui/index.html - queue messages mock

http://localhost:8080/ - simple UI

Deployed instance

We also managed to deploy the project. Here are some probably working links

http://24mock.ru/queue-docs/swagger-ui/index.html — q

http://24mock.ru/api-docs/swagger-ui/index.html — api

http://24mock.ru/ - UI