Skip to content

CS2552F-DOSA/docstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

100 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sharelatex for docker

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 posted

Put (not support here)

curl -v -X PUT -d '{"lines": [1234]}' http://localhost:3000/project/5620bece05509b0a7a3cbc61/doc/111122223330

Get

curl -v http://localhost:3000/project/5620bece05509b0a7a3cbc61/doc/111122223330

curl -v http://localhost:9999/project/5620bece05509b0a7a3cbc61/doc/111122223330

Delete

curl -X DELETE http://localhost:3000/project/5620bece05509b0a7a3cbc61/doc/111122223330

test with script

# inside the envoy container
apt update && apt install curl vim -y python3-pip && pip3 install --upgrade requests

python3 test-script.py

Screen Shot 2020-04-26 at 18.38.30

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors