diff --git a/docs/_docs/restapi/index.md b/docs/_docs/restapi/index.md index c92f644f..36d4eb78 100644 --- a/docs/_docs/restapi/index.md +++ b/docs/_docs/restapi/index.md @@ -14,9 +14,8 @@ REST API execution examples. ### Generate ID Token ```sh -$ curl -D - -X POST -H "Content-Type: application/json" -d '{"authorId":"01fgvhkzpyghp23wvp4p87nx29","password":"pass"}' 127.0.0.1:9001/token/ +$ curl -D - -X POST -H "Content-Type: application/json" -d '{"authorId":"01gn798rem0pj4xnzxfnj5g5wp","password":"pass"}' 127.0.0.1:9001/token/ HTTP/1.1 201 Created -Server: akka-http/10.2.4 Date: Sun, 08 Aug 2021 16:39:21 GMT Content-Type: application/json Content-Length: 638 @@ -26,6 +25,17 @@ Content-Length: 638 } ``` -### POST a content +### POST a content (TODO) -TODO +```sh +$ curl -D - -X POST -H "Authorization: Bearer " -d '{"TODO"}' 127.0.0.1:9001/contents +``` + +## DELETE a content + +```sh +$ curl -D - -X DELETE -H "Authorization: Bearer " 127.0.0.1:9001/contents/ +HTTP/1.1 204 No Content +Date: Mon, 26 Dec 2022 13:40:44 GMT +Connection: keep-alive +```