- Clone this repo
docker login
(in case ofGot permission denied while trying to connect...
thensudo chmod 666 /var/run/docker.sock
)bash ./run.sh
- To check:
curl -X GET "http://localhost:18080/ex_json?foo='blabla'&pew=32&count[]=a&count[]=b&double_param=2.31"
- Another check:
curl -X GET "http://localhost:18080/ex_json_arr"
{
foo='blabla',
pew=32,
count=['a', 'b'],
double_param=2.31
}
{
"arr1":[1,3,4],
"list_str":["a","b"],
"double_param":3.31,
"arr2":[null,2],
"message":"Hello, World!",
"success":1,
"foo":"'blabla'",
"pew_double":16,
"pew_str":"32",
"pew_int_stoi":35
}