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.
 
 
 
 

63 lines
1.5 KiB

<?php
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
$APIS = [
"ping" => [
"load" => "ping.php",
"vars" => [
]
],
"getnotes" => [
"load" => "getnotes.php",
"vars" => [
]
],
"getnote" => [
"load" => "getnote.php",
"vars" => [
"id" => "/^[0-9]+$/"
]
],
"savenote" => [
"load" => "savenote.php",
"vars" => [
"id (optional)" => "/^[0-9]+$/",
"text" => "string",
"color (optional)" => "/^[a-fA-F0-9]{6}$/",
"modified (optional)" => "string",
"favorite (optional)" => "/^[0-1]+$/",
"archived (optional)" => "/^[0-1]+$/"
]
],
"deletenote" => [
"load" => "deletenote.php",
"vars" => [
"id" => "/^[0-9]+$/"
]
],
"favoritenote" => [
"load" => "favoritenote.php",
"vars" => [
"id" => "/^[0-9]+$/",
"favorite (optional)" => "/^[0-1]+$/"
]
],
"tolist" => [
"load" => "tolist.php",
"vars" => [
"id" => "/^[0-9]+$/"
]
],
"togglelist" => [
"load" => "togglelist.php",
"vars" => [
"id" => "/^[0-9]+$/",
"text" => "string"
]
],
];