diff options
author | terminaldweller <thabogre@gmail.com> | 2022-05-18 14:43:24 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-05-18 14:43:24 +0000 |
commit | 52c86c942bae1e0e5e7ba97ea93efafbd4c198dd (patch) | |
tree | b1aa9b9b8c8104bb9ac787b399a12133e153e4b1 /tests.sh | |
parent | some fixes (diff) | |
download | mdrtl-52c86c942bae1e0e5e7ba97ea93efafbd4c198dd.tar.gz mdrtl-52c86c942bae1e0e5e7ba97ea93efafbd4c198dd.zip |
CRUD tested and working
Diffstat (limited to '')
-rwxr-xr-x | tests.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh new file mode 100755 index 0000000..1187978 --- /dev/null +++ b/tests.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +curl -X POST -H "Content-Type:application/json" -d '{"name":"doc1", "lastModified": 1652882691, "body":"Hello"}' "http://localhost:9080/api/v1/doc" +curl -X GET "http://localhost:9080/api/v1/doc/2" +curl -X DELETE "http://localhost:9080/api/v1/doc/1" +curl -X PUT -H "Content-Type:application/json" -d '{"id": 1, "body": "Die before I do"}' "http://localhost:9080/api/v1/doc/1" |