blob: d23741fe8c6e8b096957fb527cf5a734377963ee (
plain) (
blame)
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"
curl -k -X GET "https://localhost:9080/api/v1/doc/2"
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"
|