Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Dec 26, 2022
1 parent cce71a7 commit e2d0ff2
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions docs/_docs/restapi/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -26,6 +25,17 @@ Content-Length: 638
}
```

### POST a content
### POST a content (TODO)

TODO
```sh
$ curl -D - -X POST -H "Authorization: Bearer <token>" -d '{"TODO"}' 127.0.0.1:9001/contents
```

## DELETE a content

```sh
$ curl -D - -X DELETE -H "Authorization: Bearer <token>" 127.0.0.1:9001/contents/<contentsId>
HTTP/1.1 204 No Content
Date: Mon, 26 Dec 2022 13:40:44 GMT
Connection: keep-alive
```

0 comments on commit e2d0ff2

Please sign in to comment.