Post(update)
curl -X POST -H 'Content-Type: application/json' -d '{"lines": ["1234"]}' http://localhost:3000/project/5620bece05509b0a7a3cbc61/doc/111122223330
# 5620bece05509b0a7a3cbc61 is project id
# 111122223333 is the doc id
# 1234 is the content to be posted
curl -X POST -H 'Content-Type: application/json' -d '@original_file' http://localhost:3000/project/5620bece05509b0a7a3cbc61/doc/111122223330
curl -X POST -H 'Content-Type: application/json' -d '{"lines": ["1234"]}' http://localhost:9999/project/5620bece05509b0a7a3cbc61/doc/111122223330
# 5620bece05509b0a7a3cbc61 is project id
# 111122223333 is the doc id
# 1234 is the content to be postedPut (not support here)
curl -v -X PUT -d '{"lines": [1234]}' http://localhost:3000/project/5620bece05509b0a7a3cbc61/doc/111122223330Get
curl -v http://localhost:3000/project/5620bece05509b0a7a3cbc61/doc/111122223330
curl -v http://localhost:9999/project/5620bece05509b0a7a3cbc61/doc/111122223330Delete
curl -X DELETE http://localhost:3000/project/5620bece05509b0a7a3cbc61/doc/111122223330test with script
# inside the envoy container
apt update && apt install curl vim -y python3-pip && pip3 install --upgrade requests
python3 test-script.py