2018-12-14 21:16:31 -07:00
|
|
|
<?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" => [
|
|
|
|
]
|
2020-05-14 21:14:38 -06:00
|
|
|
],
|
|
|
|
"lookup" => [
|
2020-06-07 20:47:02 -06:00
|
|
|
"load" => "machine.php",
|
2020-05-14 21:14:38 -06:00
|
|
|
"vars" => [
|
2020-09-03 19:05:00 -06:00
|
|
|
"id" => "/^[0-9a-zA-Z]+$/"
|
2020-05-14 21:14:38 -06:00
|
|
|
]
|
2020-06-07 20:47:02 -06:00
|
|
|
],
|
|
|
|
"editmachine" => [
|
|
|
|
"load" => "machine.php",
|
|
|
|
"vars" => [
|
2020-09-03 19:05:00 -06:00
|
|
|
"id" => "/^[0-9a-zA-Z]+$/",
|
2020-06-26 20:16:46 -06:00
|
|
|
"type (optional)" => "numeric",
|
2020-06-07 20:47:02 -06:00
|
|
|
"model (optional)" => "string",
|
2020-07-19 21:12:20 -06:00
|
|
|
"clientid (optional)" => "string",
|
2020-06-07 20:47:02 -06:00
|
|
|
"os (optional)" => "string",
|
|
|
|
"serial (optional)" => "string",
|
|
|
|
"manufacturer (optional)" => "string",
|
|
|
|
"condition (optional)" => "numeric",
|
|
|
|
"price (optional)" => "numeric",
|
|
|
|
"privatenotes (optional)" => "string",
|
|
|
|
"publicnotes (optional)" => "string"
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"addmachine" => [
|
|
|
|
"load" => "machine.php",
|
|
|
|
"vars" => [
|
2020-06-26 20:16:46 -06:00
|
|
|
"type (optional)" => "numeric",
|
2020-06-07 20:47:02 -06:00
|
|
|
"model (optional)" => "string",
|
2020-07-19 21:12:20 -06:00
|
|
|
"clientid (optional)" => "string",
|
2020-06-07 20:47:02 -06:00
|
|
|
"os (optional)" => "string",
|
|
|
|
"serial (optional)" => "string",
|
|
|
|
"manufacturer (optional)" => "string",
|
|
|
|
"condition (optional)" => "numeric",
|
|
|
|
"price (optional)" => "numeric",
|
|
|
|
"privatenotes (optional)" => "string",
|
|
|
|
"publicnotes (optional)" => "string"
|
|
|
|
]
|
2020-09-03 15:42:20 -06:00
|
|
|
],
|
2020-09-06 19:21:49 -06:00
|
|
|
"getclient" => [
|
|
|
|
"load" => "client.php",
|
|
|
|
"vars" => [
|
|
|
|
"clientid" => "string"
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"getclients" => [
|
|
|
|
"load" => "client.php",
|
|
|
|
"vars" => [
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"searchclients" => [
|
|
|
|
"load" => "client.php",
|
|
|
|
"vars" => [
|
|
|
|
"q" => "string"
|
|
|
|
]
|
|
|
|
],
|
2020-09-03 15:42:20 -06:00
|
|
|
"addevent" => [
|
|
|
|
"load" => "addevent.php",
|
|
|
|
"vars" => [
|
2020-09-03 19:05:00 -06:00
|
|
|
"id" => "/^[0-9a-zA-Z]+$/",
|
2020-09-03 15:42:20 -06:00
|
|
|
"date" => "string",
|
|
|
|
"event" => "string",
|
|
|
|
"publicnotes (optional)" => "string",
|
|
|
|
"privatenotes (optional)" => "string"
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"geteventtypes" => [
|
|
|
|
"load" => "geteventtypes.php",
|
|
|
|
"vars" => [
|
|
|
|
]
|
2018-12-14 21:16:31 -07:00
|
|
|
]
|
|
|
|
];
|