get-note-content.http 538 B

12345678910111213141516171819202122232425
  1. POST {{triliumHost}}/etapi/create-note
  2. Authorization: {{authToken}}
  3. Content-Type: application/json
  4. {
  5. "parentNoteId": "root",
  6. "title": "Hello",
  7. "type": "text",
  8. "content": "Hi there!"
  9. }
  10. > {%
  11. client.global.set("createdNoteId", response.body.note.noteId);
  12. client.global.set("createdBranchId", response.body.branch.branchId);
  13. %}
  14. ###
  15. GET {{triliumHost}}/etapi/notes/{{createdNoteId}}/content
  16. Authorization: {{authToken}}
  17. > {%
  18. client.assert(response.status === 200);
  19. client.assert(response.body === "Hi there!");
  20. %}