mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-21 18:06:36 +02:00
update memos
This commit is contained in:
parent
17695aed57
commit
5e670e3392
@ -4,9 +4,13 @@ memos
|
||||
[Memos][1] is a privacy-first, lightweight note-taking service. Easily capture and share your great thoughts.
|
||||
|
||||
```bash
|
||||
$ API_URL=http://127.0.0.1:5230/api/v1
|
||||
$ API_TOKEN=******
|
||||
$ curl -H "Content-Type: application/json" -H "Authorization: Bearer $API_TOKEN" $API_URL/memos -d '{"content": "hello world", "visibility": "PUBLIC"}'
|
||||
$ API_URL=http://127.0.0.1:5230/api/v1 API_TOKEN=******
|
||||
|
||||
$ curl -H "Content-Type: application/json" -H "Authorization: Bearer $API_TOKEN" $API_URL/memos -d '{"content": "hello", "visibility": "PUBLIC"}'
|
||||
{"name":"memos/9", ... , "snippet":"hello\n"}
|
||||
|
||||
$ curl -H "Content-Type: application/json" -H "Authorization: Bearer $API_TOKEN" $API_URL/memos/9/comments -d '{"content": "world", "visibility": "PUBLIC"}'
|
||||
{"name":"memos/10", ... , "snippet":"world\n"}
|
||||
```
|
||||
|
||||
Read API Doc [here][2].
|
||||
|
Loading…
Reference in New Issue
Block a user