-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreateDefaultDatabase.txt
8 lines (8 loc) · 1.67 KB
/
createDefaultDatabase.txt
1
2
3
4
5
6
7
8
curl -i -X POST -H 'Content-Type:application/json' -d '{"em":"[email protected]", "db":"test", "t":"webida document", "u":"webida", "pu":"", "l":"enUS"}' http://localhost:3000/createDocument
curl -i -X POST -H 'Content-Type:application/json' -d '{"em":"[email protected]", "db":"test", "t":"wikida document", "u":"webida/wikida", "pu":"webida", "l":"enUS"}' http://localhost:3000/createDocument
curl -i -X POST -H 'Content-Type:application/json' -d '{"em":"[email protected]", "db":"test", "t":"jugwan document", "u":"webida/jugwan", "pu":"webida", "l":"enUS"}' http://localhost:3000/createDocument
curl -i -X POST -H 'Content-Type:application/json' -d '{"em":"[email protected]", "db":"test", "t":"jugwan sub document 1", "u":"webida/jugwan/sub1", "pu":"webida/jugwan", "l":"enUS"}' http://localhost:3000/createDocument
curl -i -X POST -H 'Content-Type:application/json' -d '{"em":"[email protected]", "db":"test", "t":"jugwan sub document 2", "u":"webida/jugwan/sub2", "pu":"webida/jugwan", "l":"enUS"}' http://localhost:3000/createDocument
curl -i -X POST -H 'Content-Type:application/json' -d '{"em":"[email protected]", "db":"test", "t":"wikida sub document 1", "u":"webida/wikida/sub1", "pu":"webida/jugwan", "l":"enUS"}' http://localhost:3000/createDocument
curl -i -X POST -H 'Content-Type:application/json' -d '{"em":"[email protected]", "db":"test", "t":"wikida sub document 2", "u":"webida/wikida/sub2", "pu":"webida/wikida", "l":"enUS"}' http://localhost:3000/createDocument
curl -i -X POST -H 'Content-Type:application/json' -d '{"em":"[email protected]", "db":"test", "u":"webida/jugwan", "t":"modified title", "c":"modified contents", "is":[], "l":"enUS", "v":"0"}' http://localhost:3000/saveDocument