export-note-subtree.http 881 B

12345678910111213141516171819202122232425262728293031323334353637
  1. GET {{triliumHost}}/etapi/notes/root/export
  2. Authorization: {{authToken}}
  3. > {%
  4. client.assert(response.status === 200);
  5. client.assert(response.headers.valueOf("Content-Type") == "application/zip");
  6. %}
  7. ###
  8. GET {{triliumHost}}/etapi/notes/root/export?format=html
  9. Authorization: {{authToken}}
  10. > {%
  11. client.assert(response.status === 200);
  12. client.assert(response.headers.valueOf("Content-Type") == "application/zip");
  13. %}
  14. ###
  15. GET {{triliumHost}}/etapi/notes/root/export?format=markdown
  16. Authorization: {{authToken}}
  17. > {%
  18. client.assert(response.status === 200);
  19. client.assert(response.headers.valueOf("Content-Type") == "application/zip");
  20. %}
  21. ###
  22. GET {{triliumHost}}/etapi/notes/root/export?format=wrong
  23. Authorization: {{authToken}}
  24. > {%
  25. client.assert(response.status === 400);
  26. client.assert(response.body.code === "UNRECOGNIZED_EXPORT_FORMAT");
  27. %}