Skip to content

bolotyuh/replicated_log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published