Skip to content

vmishenev/rest_echo_server_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Описание

Порт 8082.

  • GET on /storage/key-val получает запись с ключом key-val
  • POST on /storage/key-val создат запись с ключом key-val, в теле отправить {"message": "text" }
  • PUT on /storage/key-val изменяет запись с ключом key-val, в теле отправить {"message": "text" }
  • DELETE on /storage/key-val удаляет запись с ключом key-val

Тестировани

curl -X POST  -H "Content-Type: application/json" -d '{"message": "Black" }' -i http://localhost:8082/storage/key-test

curl -X PUT  -H "Content-Type: application/json" -d '{"message": "White" }' -i http://localhost:8082/storage/key-test

curl -X DELETE http://localhost:8082/storage/key-test

curl -X GET http://localhost:8082/storage/key-test

Сборка

  • docker-compose up запустить контейнер

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published