Notetaking app with Markdown support https://netsyms.com/apps/notepost
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

apisettings.php 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /*
  3. * This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. */
  7. $APIS = [
  8. "ping" => [
  9. "load" => "ping.php",
  10. "vars" => [
  11. ]
  12. ],
  13. "getnotes" => [
  14. "load" => "getnotes.php",
  15. "vars" => [
  16. ]
  17. ],
  18. "getnote" => [
  19. "load" => "getnote.php",
  20. "vars" => [
  21. "id" => "/^[0-9]+$/"
  22. ]
  23. ],
  24. "savenote" => [
  25. "load" => "savenote.php",
  26. "vars" => [
  27. "id (optional)" => "/^[0-9]+$/",
  28. "text" => "string",
  29. "color (optional)" => "/^[a-fA-F0-9]{6}$/",
  30. "modified (optional)" => "string",
  31. "favorite (optional)" => "/^[0-1]+$/",
  32. "archived (optional)" => "/^[0-1]+$/"
  33. ]
  34. ],
  35. "deletenote" => [
  36. "load" => "deletenote.php",
  37. "vars" => [
  38. "id" => "/^[0-9]+$/"
  39. ]
  40. ],
  41. "favoritenote" => [
  42. "load" => "favoritenote.php",
  43. "vars" => [
  44. "id" => "/^[0-9]+$/",
  45. "favorite (optional)" => "/^[0-1]+$/"
  46. ]
  47. ],
  48. "tolist" => [
  49. "load" => "tolist.php",
  50. "vars" => [
  51. "id" => "/^[0-9]+$/"
  52. ]
  53. ],
  54. "togglelist" => [
  55. "load" => "togglelist.php",
  56. "vars" => [
  57. "id" => "/^[0-9]+$/",
  58. "text" => "string"
  59. ]
  60. ],
  61. ];