Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 593 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 593 Bytes

Replicated log

Run container

$ docker-compose up build -d

Available methods

Master

  • [POST] Append message
  • [GET] List messages

Secondary

  • [GET] List messages

Example of usage api

MASTER

Append message

curl --location --request POST 'http://127.0.0.1:9090/append-msg' \
--header 'Content-Type: application/json' \
--data-raw '{"message":"some text"}'

List messages

curl --request GET 'http://127.0.0.1:9090/list-msg'

SECONDARY

List messages

curl --request GET 'http://127.0.0.1:9001/list-msg'