mirror of https://github.com/TriliumNext/Notes
Merge remote-tracking branch 'origin/stable'
# Conflicts: # Dockerfile # package-lock.json # package.json # src/services/cloning.jspull/255/head
commit
17dd6141fb
@ -1,2 +1,3 @@
|
|||||||
User-agent: *
|
User-agent: *
|
||||||
|
Allow: /share/
|
||||||
Disallow: /
|
Disallow: /
|
||||||
|
|||||||
@ -0,0 +1,25 @@
|
|||||||
|
POST {{triliumHost}}/etapi/create-note
|
||||||
|
Authorization: {{authToken}}
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
|
{
|
||||||
|
"parentNoteId": "root",
|
||||||
|
"title": "Hello",
|
||||||
|
"type": "image",
|
||||||
|
"mime": "image/png",
|
||||||
|
"content": ""
|
||||||
|
}
|
||||||
|
|
||||||
|
> {% client.global.set("createdNoteId", response.body.note.noteId); %}
|
||||||
|
|
||||||
|
###
|
||||||
|
|
||||||
|
PUT {{triliumHost}}/etapi/notes/{{createdNoteId}}/content
|
||||||
|
Authorization: {{authToken}}
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Content-Transfer-Encoding: binary
|
||||||
|
|
||||||
|
< ../images/icon-color.png
|
||||||
|
|
||||||
|
> {% client.assert(response.status === 204); %}
|
||||||
|
|
||||||
Loading…
Reference in New Issue