aboutsummaryrefslogblamecommitdiffstats
path: root/tests.sh
blob: 3c18a44a20d7b71a5fa731302204870135083630 (plain) (tree)
1
2
3
4
5
6

         

                                                                                                                                                         

                                                                                                                                 
#!/bin/sh

curl -k -X POST -H "Content-Type:application/json" -d '{"name":"doc1", "lastModified": 1652882691, "body":"Hello"}' "https://localhost:9080/api/v1/doc/1"
curl -k -X GET "https://localhost:9080/api/v1/doc/1"
curl -k -X DELETE "https://localhost:9080/api/v1/doc/1"
curl -k -X PUT -H "Content-Type:application/json" -d '{"id": 1, "body": "Die before I do"}' "https://localhost:9080/api/v1/doc/1"