Sign inSign up

cravendocker/hastari-dev-test

By cravendocker

•Updated about 4 years ago

Image
0

148

cravendocker/hastari-dev-test repository overview

You can run this containner using code below:

docker run -p 80:80 --rm \ 
--memory 1g \
-v $(pwd):/mnt \
cravendocker/hastari-dev-test:latest

It will have URL:

And, it has some method like:

  • GET
  • It will show all request and have other url to display single message, namely:

    http://localhost/{request_id}

  • POST
  • It will add new data request using body in form of JSON which has sintax below:

     				{
     					id: int,
     					method: string,
     					params:
     					{
     						message: string
     					}
     				}
     			

  • PUT
  • It will update availabe data request using body in form of JSON which has sintax below:

     				{
     					id: int,
     					method: string,
     					params:
     					{
     						message: string
     					}
     				}
     			

  • POST
  • It will remove availabe data request using body in form of JSON which has sintax below:

     				{
     					id: int,
     					method: empty,
     					params:
     					{
     						message: empty
     					}
     				}
     			

Tag summary

Content type

Image

Digest

sha256:36e3a3714…

Size

359.7 MB

Last updated

about 4 years ago

docker pull cravendocker/hastari-dev-test