no-token.http 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. GET {{triliumHost}}/etapi/notes?search=aaa
  2. > {% client.assert(response.status === 401); %}
  3. ###
  4. GET {{triliumHost}}/etapi/notes/root
  5. > {% client.assert(response.status === 401); %}
  6. ###
  7. PATCH {{triliumHost}}/etapi/notes/root
  8. Authorization: fakeauth
  9. > {% client.assert(response.status === 401); %}
  10. ###
  11. DELETE {{triliumHost}}/etapi/notes/root
  12. Authorization: fakeauth
  13. > {% client.assert(response.status === 401); %}
  14. ###
  15. GET {{triliumHost}}/etapi/branches/root
  16. Authorization: fakeauth
  17. > {% client.assert(response.status === 401); %}
  18. ###
  19. PATCH {{triliumHost}}/etapi/branches/root
  20. > {% client.assert(response.status === 401); %}
  21. ###
  22. DELETE {{triliumHost}}/etapi/branches/root
  23. > {% client.assert(response.status === 401); %}
  24. ###
  25. GET {{triliumHost}}/etapi/attributes/000
  26. > {% client.assert(response.status === 401); %}
  27. ###
  28. PATCH {{triliumHost}}/etapi/attributes/000
  29. > {% client.assert(response.status === 401); %}
  30. ###
  31. DELETE {{triliumHost}}/etapi/attributes/000
  32. > {% client.assert(response.status === 401); %}
  33. ###
  34. GET {{triliumHost}}/etapi/inbox/2022-02-22
  35. > {% client.assert(response.status === 401); %}
  36. ###
  37. GET {{triliumHost}}/etapi/calendar/days/2022-02-22
  38. Authorization: fakeauth
  39. > {% client.assert(response.status === 401); %}
  40. ###
  41. GET {{triliumHost}}/etapi/calendar/weeks/2022-02-22
  42. > {% client.assert(response.status === 401); %}
  43. ###
  44. GET {{triliumHost}}/etapi/calendar/months/2022-02
  45. > {% client.assert(response.status === 401); %}
  46. ###
  47. GET {{triliumHost}}/etapi/calendar/years/2022
  48. > {% client.assert(response.status === 401); %}
  49. ###
  50. POST {{triliumHost}}/etapi/create-note
  51. > {% client.assert(response.status === 401); %}
  52. ###
  53. GET {{triliumHost}}/etapi/app-info
  54. > {% client.assert(response.status === 401); %}
  55. ### Fake URL will get a 404 even without token
  56. GET {{triliumHost}}/etapi/zzzzzz
  57. > {% client.assert(response.status === 404); %}