trilium/test-etapi/put-note-content.http

26 lines
491 B
Plaintext
Raw Normal View History

2022-01-08 19:01:54 +08:00
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"); %}