mirror of
https://github.com/zadam/trilium.git
synced 2024-09-21 08:06:03 +08:00
26 lines
491 B
Plaintext
26 lines
491 B
Plaintext
|
POST {{triliumHost}}/etapi/create-note
|
||
|
Content-Type: application/json
|
||
|
|
||
|
{
|
||
|
"parentNoteId": "root",
|
||
|
"title": "Hello",
|
||
|
"type": "code",
|
||
|
"mime": "text/plain",
|
||
|
"content": "Hi there!"
|
||
|
}
|
||
|
|
||
|
> {% client.global.set("createdNoteId", response.body.note.noteId); %}
|
||
|
|
||
|
###
|
||
|
|
||
|
PUT {{triliumHost}}/etapi/notes/{{createdNoteId}}/content
|
||
|
Content-Type: text/plain
|
||
|
|
||
|
Changed content
|
||
|
|
||
|
###
|
||
|
|
||
|
GET {{triliumHost}}/etapi/notes/{{createdNoteId}}/content
|
||
|
|
||
|
> {% client.assert(response.body === "Changed content"); %}
|