Improve
This commit is contained in:
parent
bcf91412f9
commit
e1fd83ee78
@ -36,8 +36,8 @@ if ($VARS["action"] != "lookup") {
|
|||||||
if (!empty($VARS["model"])) {
|
if (!empty($VARS["model"])) {
|
||||||
$machine->setModel($VARS['model']);
|
$machine->setModel($VARS['model']);
|
||||||
}
|
}
|
||||||
if (!empty($VARS["client"])) {
|
if (!empty($VARS["clientid"])) {
|
||||||
$machine->setClientID($VARS['client']);
|
$machine->setClientID($VARS['clientid']);
|
||||||
}
|
}
|
||||||
if (!empty($VARS["os"])) {
|
if (!empty($VARS["os"])) {
|
||||||
$machine->setOS($VARS['os']);
|
$machine->setOS($VARS['os']);
|
||||||
|
@ -24,7 +24,7 @@ $APIS = [
|
|||||||
"id" => "/^[0-9a-z]+$/",
|
"id" => "/^[0-9a-z]+$/",
|
||||||
"type (optional)" => "numeric",
|
"type (optional)" => "numeric",
|
||||||
"model (optional)" => "string",
|
"model (optional)" => "string",
|
||||||
"client (optional)" => "string",
|
"clientid (optional)" => "string",
|
||||||
"os (optional)" => "string",
|
"os (optional)" => "string",
|
||||||
"serial (optional)" => "string",
|
"serial (optional)" => "string",
|
||||||
"manufacturer (optional)" => "string",
|
"manufacturer (optional)" => "string",
|
||||||
@ -39,7 +39,7 @@ $APIS = [
|
|||||||
"vars" => [
|
"vars" => [
|
||||||
"type (optional)" => "numeric",
|
"type (optional)" => "numeric",
|
||||||
"model (optional)" => "string",
|
"model (optional)" => "string",
|
||||||
"client (optional)" => "string",
|
"clientid (optional)" => "string",
|
||||||
"os (optional)" => "string",
|
"os (optional)" => "string",
|
||||||
"serial (optional)" => "string",
|
"serial (optional)" => "string",
|
||||||
"manufacturer (optional)" => "string",
|
"manufacturer (optional)" => "string",
|
||||||
|
@ -68,7 +68,7 @@ class Machine implements JsonSerializable {
|
|||||||
"components" => $this->components,
|
"components" => $this->components,
|
||||||
"formdata" => [
|
"formdata" => [
|
||||||
"options" => [
|
"options" => [
|
||||||
"clientid" => Clients::getAllAsIDNameArray(),
|
"clientid" => array_merge(["" => ""], Clients::getAllAsIDNameArray()),
|
||||||
"type" => Machine::getTypeList()
|
"type" => Machine::getTypeList()
|
||||||
],
|
],
|
||||||
"inputtypes" => [
|
"inputtypes" => [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user