Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
gmd.bdcloud.fr /
documents /
api /
temp /
Delete
Unzip
Name
Size
Permission
Date
Action
routes.php
73.29
KB
-rwxrwxrwx
2025-12-17 17:43
Save
Rename
<?php $o = array(); // ** THIS IS AN AUTO GENERATED FILE. DO NOT EDIT MANUALLY ** //==================== v1 ==================== $o['v1'] = array(); //==== v1 * ==== $o['v1']['*'] = array ( 'explorer' => array ( 'GET' => array ( 'url' => 'explorer/*', 'className' => 'Luracast\\Restler\\Explorer', 'path' => 'explorer', 'methodName' => 'get', 'arguments' => array ( ), 'defaults' => array ( ), 'metadata' => array ( 'description' => 'Serve static files for exploring', 'longDescription' => 'Serves explorer html, css, and js files', 'url' => 'GET *', 'package' => 'Luracast\\Restler', 'access' => 'hybrid', 'version' => '3.0.0rc6', 'scope' => array ( '*' => 'Luracast\\Restler\\', 'stdClass' => 'stdClass', 'Text' => 'Luracast\\Restler\\Data\\Text', 'ValidationInfo' => 'Luracast\\Restler\\Data\\ValidationInfo', 'Scope' => 'Luracast\\Restler\\Scope', ), 'resourcePath' => 'explorer', 'classDescription' => 'Class Explorer', 'param' => array ( ), 'return' => array ( 'type' => 'array', ), ), 'accessLevel' => 1, ), ), ); //==== v1 explorer/swagger ==== $o['v1']['explorer/swagger'] = array ( 'GET' => array ( 'url' => 'explorer/swagger', 'className' => 'Luracast\\Restler\\Explorer', 'path' => 'explorer', 'methodName' => 'swagger', 'arguments' => array ( ), 'defaults' => array ( ), 'metadata' => array ( 'description' => '', 'longDescription' => '', 'return' => array ( 'type' => 'stdClass', 'description' => '', 'children' => array ( ), ), 'package' => 'Luracast\\Restler', 'access' => 'hybrid', 'version' => '3.0.0rc6', 'scope' => array ( '*' => 'Luracast\\Restler\\', 'stdClass' => 'stdClass', 'Text' => 'Luracast\\Restler\\Data\\Text', 'ValidationInfo' => 'Luracast\\Restler\\Data\\ValidationInfo', 'Scope' => 'Luracast\\Restler\\Scope', ), 'resourcePath' => 'explorer', 'classDescription' => 'Class Explorer', 'param' => array ( ), ), 'accessLevel' => 1, ), ); //==== v1 orders/{n0} ==== $o['v1']['orders/{n0}'] = array ( 'GET' => array ( 'url' => 'orders/{id}', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'get', 'arguments' => array ( 'id' => 0, 'contact_list' => 1, ), 'defaults' => array ( 0 => NULL, 1 => 1, ), 'metadata' => array ( 'description' => 'Get properties of an order object by id', 'longDescription' => 'Return an array with order informations', 'param' => array ( 0 => array ( 'type' => 'int', 'name' => 'id', 'description' => 'ID of order', 'properties' => array ( 'from' => 'path', ), 'label' => 'Id', 'default' => NULL, 'required' => true, 'children' => array ( ), ), 1 => array ( 'type' => 'int', 'name' => 'contact_list', 'description' => '0: Returned array of contacts/addresses contains all properties, 1: Return array contains just id', 'properties' => array ( 'from' => 'query', ), 'label' => 'Contact List', 'default' => 1, 'required' => false, 'children' => array ( ), ), ), 'return' => array ( 'type' => array ( 0 => 'array', 1 => 'mixed', ), 'description' => 'data without useless information', ), 'throws' => array ( 0 => array ( 'code' => 500, 'message' => 'RestException', 'exception' => 'Exception', ), ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), 'PUT' => array ( 'url' => 'orders/{id}', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'put', 'arguments' => array ( 'id' => 0, 'request_data' => 1, ), 'defaults' => array ( 0 => NULL, 1 => NULL, ), 'metadata' => array ( 'description' => 'Update order general fields (won\'t touch lines of order)', 'longDescription' => '', 'param' => array ( 0 => array ( 'type' => 'int', 'name' => 'id', 'description' => 'Id of order to update', 'properties' => array ( 'from' => 'path', ), 'label' => 'Id', 'default' => NULL, 'required' => true, 'children' => array ( ), ), 1 => array ( 'type' => 'array', 'name' => 'request_data', 'description' => 'Datas', 'properties' => array ( 'from' => 'body', ), 'label' => 'Request Data', 'default' => NULL, 'required' => false, 'children' => array ( ), ), ), 'return' => array ( 'type' => 'int', 'description' => '', ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), 'DELETE' => array ( 'url' => 'orders/{id}', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'delete', 'arguments' => array ( 'id' => 0, ), 'defaults' => array ( 0 => NULL, ), 'metadata' => array ( 'description' => 'Delete order', 'longDescription' => '', 'param' => array ( 0 => array ( 'type' => 'int', 'name' => 'id', 'description' => 'Order ID', 'properties' => array ( 'from' => 'path', ), 'label' => 'Id', 'default' => NULL, 'required' => true, 'children' => array ( ), ), ), 'return' => array ( 'type' => 'array', 'description' => '', ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), ); //==== v1 orders/ref/{s0} ==== $o['v1']['orders/ref/{s0}'] = array ( 'GET' => array ( 'url' => 'orders/ref/{ref}', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'getByRef', 'arguments' => array ( 'ref' => 0, 'contact_list' => 1, ), 'defaults' => array ( 0 => NULL, 1 => 1, ), 'metadata' => array ( 'description' => 'Get properties of an order object by ref', 'longDescription' => 'Return an array with order informations', 'param' => array ( 0 => array ( 'type' => 'string', 'name' => 'ref', 'description' => 'Ref of object', 'properties' => array ( 'from' => 'path', ), 'label' => 'Ref', 'default' => NULL, 'required' => true, 'children' => array ( ), ), 1 => array ( 'type' => 'int', 'name' => 'contact_list', 'description' => '0: Returned array of contacts/addresses contains all properties, 1: Return array contains just id', 'properties' => array ( 'from' => 'query', ), 'label' => 'Contact List', 'default' => 1, 'required' => false, 'children' => array ( ), ), ), 'return' => array ( 'type' => array ( 0 => 'array', 1 => 'mixed', ), 'description' => 'data without useless information', ), 'url' => 'GET ref/{ref}', 'throws' => array ( 0 => array ( 'code' => 500, 'message' => 'RestException', 'exception' => 'Exception', ), ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), ); //==== v1 orders/ref_ext/{s0} ==== $o['v1']['orders/ref_ext/{s0}'] = array ( 'GET' => array ( 'url' => 'orders/ref_ext/{ref_ext}', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'getByRefExt', 'arguments' => array ( 'ref_ext' => 0, 'contact_list' => 1, ), 'defaults' => array ( 0 => NULL, 1 => 1, ), 'metadata' => array ( 'description' => 'Get properties of an order object by ref_ext', 'longDescription' => 'Return an array with order informations', 'param' => array ( 0 => array ( 'type' => 'string', 'name' => 'ref_ext', 'description' => 'External reference of object', 'properties' => array ( 'from' => 'path', ), 'label' => 'Ref Ext', 'default' => NULL, 'required' => true, 'children' => array ( ), ), 1 => array ( 'type' => 'int', 'name' => 'contact_list', 'description' => '0: Returned array of contacts/addresses contains all properties, 1: Return array contains just id', 'properties' => array ( 'from' => 'query', ), 'label' => 'Contact List', 'default' => 1, 'required' => false, 'children' => array ( ), ), ), 'return' => array ( 'type' => array ( 0 => 'array', 1 => 'mixed', ), 'description' => 'data without useless information', ), 'url' => 'GET ref_ext/{ref_ext}', 'throws' => array ( 0 => array ( 'code' => 500, 'message' => 'RestException', 'exception' => 'Exception', ), ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), ); //==== v1 orders ==== $o['v1']['orders'] = array ( 'GET' => array ( 'url' => 'orders', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'index', 'arguments' => array ( 'sortfield' => 0, 'sortorder' => 1, 'limit' => 2, 'page' => 3, 'thirdparty_ids' => 4, 'sqlfilters' => 5, ), 'defaults' => array ( 0 => 't.rowid', 1 => 'ASC', 2 => 100, 3 => 0, 4 => '', 5 => '', ), 'metadata' => array ( 'description' => 'List orders', 'longDescription' => 'Get a list of orders', 'param' => array ( 0 => array ( 'type' => 'string', 'name' => 'sortfield', 'description' => 'Sort field', 'properties' => array ( 'from' => 'query', ), 'label' => 'Sortfield', 'default' => 't.rowid', 'required' => false, 'children' => array ( ), ), 1 => array ( 'type' => 'string', 'name' => 'sortorder', 'description' => 'Sort order', 'properties' => array ( 'from' => 'query', ), 'label' => 'Sortorder', 'default' => 'ASC', 'required' => false, 'children' => array ( ), ), 2 => array ( 'type' => 'int', 'name' => 'limit', 'description' => 'Limit for list', 'properties' => array ( 'from' => 'query', ), 'label' => 'Limit', 'default' => 100, 'required' => false, 'children' => array ( ), ), 3 => array ( 'type' => 'int', 'name' => 'page', 'description' => 'Page number', 'properties' => array ( 'from' => 'query', ), 'label' => 'Page', 'default' => 0, 'required' => false, 'children' => array ( ), ), 4 => array ( 'type' => 'string', 'name' => 'thirdparty_ids', 'description' => 'Thirdparty ids to filter orders of (example \'1\' or \'1,2,3\')', 'properties' => array ( 'pattern' => '/^[0-9,]*$/i', 'from' => 'query', ), 'label' => 'Thirdparty Ids', 'default' => '', 'required' => false, 'children' => array ( ), ), 5 => array ( 'type' => 'string', 'name' => 'sqlfilters', 'description' => 'Other criteria to filter answers separated by a comma. Syntax example "(t.ref:like:\'SO-%\') and (t.date_creation:<:\'20160101\')"', 'properties' => array ( 'from' => 'query', ), 'label' => 'Sqlfilters', 'default' => '', 'required' => false, 'children' => array ( ), ), ), 'return' => array ( 'type' => 'array', 'description' => 'Array of order objects', ), 'throws' => array ( 0 => array ( 'code' => '404', 'message' => 'Not found', 'exception' => 'RestException', ), 1 => array ( 'code' => '503', 'message' => 'Error', 'exception' => 'RestException', ), ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), 'POST' => array ( 'url' => 'orders', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'post', 'arguments' => array ( 'request_data' => 0, ), 'defaults' => array ( 0 => NULL, ), 'metadata' => array ( 'description' => 'Create a sale order', 'longDescription' => 'Exemple: { "socid": 2, "date": 1595196000, "type": 0, "lines": [{ "fk_product": 2, "qty": 1 }] }', 'param' => array ( 0 => array ( 'type' => 'array', 'name' => 'request_data', 'description' => 'Request data', 'properties' => array ( 'from' => 'body', ), 'label' => 'Request Data', 'default' => NULL, 'required' => false, 'children' => array ( ), ), ), 'return' => array ( 'type' => 'int', 'description' => 'ID of order', ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), ); //==== v1 orders/index ==== $o['v1']['orders/index'] = array ( 'GET' => array ( 'url' => 'orders', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'index', 'arguments' => array ( 'sortfield' => 0, 'sortorder' => 1, 'limit' => 2, 'page' => 3, 'thirdparty_ids' => 4, 'sqlfilters' => 5, ), 'defaults' => array ( 0 => 't.rowid', 1 => 'ASC', 2 => 100, 3 => 0, 4 => '', 5 => '', ), 'metadata' => array ( 'description' => 'List orders', 'longDescription' => 'Get a list of orders', 'param' => array ( 0 => array ( 'type' => 'string', 'name' => 'sortfield', 'description' => 'Sort field', 'properties' => array ( 'from' => 'query', ), 'label' => 'Sortfield', 'default' => 't.rowid', 'required' => false, 'children' => array ( ), ), 1 => array ( 'type' => 'string', 'name' => 'sortorder', 'description' => 'Sort order', 'properties' => array ( 'from' => 'query', ), 'label' => 'Sortorder', 'default' => 'ASC', 'required' => false, 'children' => array ( ), ), 2 => array ( 'type' => 'int', 'name' => 'limit', 'description' => 'Limit for list', 'properties' => array ( 'from' => 'query', ), 'label' => 'Limit', 'default' => 100, 'required' => false, 'children' => array ( ), ), 3 => array ( 'type' => 'int', 'name' => 'page', 'description' => 'Page number', 'properties' => array ( 'from' => 'query', ), 'label' => 'Page', 'default' => 0, 'required' => false, 'children' => array ( ), ), 4 => array ( 'type' => 'string', 'name' => 'thirdparty_ids', 'description' => 'Thirdparty ids to filter orders of (example \'1\' or \'1,2,3\')', 'properties' => array ( 'pattern' => '/^[0-9,]*$/i', 'from' => 'query', ), 'label' => 'Thirdparty Ids', 'default' => '', 'required' => false, 'children' => array ( ), ), 5 => array ( 'type' => 'string', 'name' => 'sqlfilters', 'description' => 'Other criteria to filter answers separated by a comma. Syntax example "(t.ref:like:\'SO-%\') and (t.date_creation:<:\'20160101\')"', 'properties' => array ( 'from' => 'query', ), 'label' => 'Sqlfilters', 'default' => '', 'required' => false, 'children' => array ( ), ), ), 'return' => array ( 'type' => 'array', 'description' => 'Array of order objects', ), 'throws' => array ( 0 => array ( 'code' => '404', 'message' => 'Not found', 'exception' => 'RestException', ), 1 => array ( 'code' => '503', 'message' => 'Error', 'exception' => 'RestException', ), ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), ); //==== v1 orders/{n0}/lines ==== $o['v1']['orders/{n0}/lines'] = array ( 'GET' => array ( 'url' => 'orders/{id}/lines', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'getLines', 'arguments' => array ( 'id' => 0, ), 'defaults' => array ( 0 => NULL, ), 'metadata' => array ( 'description' => 'Get lines of an order', 'longDescription' => '', 'param' => array ( 0 => array ( 'type' => 'int', 'name' => 'id', 'description' => 'Id of order', 'properties' => array ( 'from' => 'path', ), 'label' => 'Id', 'default' => NULL, 'required' => true, 'children' => array ( ), ), ), 'url' => 'GET {id}/lines', 'return' => array ( 'type' => 'int', 'description' => '', ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), 'POST' => array ( 'url' => 'orders/{id}/lines', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'postLine', 'arguments' => array ( 'id' => 0, 'request_data' => 1, ), 'defaults' => array ( 0 => NULL, 1 => NULL, ), 'metadata' => array ( 'description' => 'Add a line to given order', 'longDescription' => '', 'param' => array ( 0 => array ( 'type' => 'int', 'name' => 'id', 'description' => 'Id of order to update', 'properties' => array ( 'from' => 'path', ), 'label' => 'Id', 'default' => NULL, 'required' => true, 'children' => array ( ), ), 1 => array ( 'type' => 'array', 'name' => 'request_data', 'description' => 'OrderLine data', 'properties' => array ( 'from' => 'body', ), 'label' => 'Request Data', 'default' => NULL, 'required' => false, 'children' => array ( ), ), ), 'url' => 'POST {id}/lines', 'return' => array ( 'type' => 'int', 'description' => '', ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), ); //==== v1 orders/{n0}/lines/{n1} ==== $o['v1']['orders/{n0}/lines/{n1}'] = array ( 'PUT' => array ( 'url' => 'orders/{id}/lines/{lineid}', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'putLine', 'arguments' => array ( 'id' => 0, 'lineid' => 1, 'request_data' => 2, ), 'defaults' => array ( 0 => NULL, 1 => NULL, 2 => NULL, ), 'metadata' => array ( 'description' => 'Update a line to given order', 'longDescription' => '', 'param' => array ( 0 => array ( 'type' => 'int', 'name' => 'id', 'description' => 'Id of order to update', 'properties' => array ( 'from' => 'path', ), 'label' => 'Id', 'default' => NULL, 'required' => true, 'children' => array ( ), ), 1 => array ( 'type' => 'int', 'name' => 'lineid', 'description' => 'Id of line to update', 'properties' => array ( 'from' => 'path', ), 'label' => 'Lineid', 'default' => NULL, 'required' => true, 'children' => array ( ), ), 2 => array ( 'type' => 'array', 'name' => 'request_data', 'description' => 'OrderLine data', 'properties' => array ( 'from' => 'body', ), 'label' => 'Request Data', 'default' => NULL, 'required' => false, 'children' => array ( ), ), ), 'url' => 'PUT {id}/lines/{lineid}', 'return' => array ( 'type' => array ( 0 => 'array', 1 => 'bool', ), 'description' => '', ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), 'DELETE' => array ( 'url' => 'orders/{id}/lines/{lineid}', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'deleteLine', 'arguments' => array ( 'id' => 0, 'lineid' => 1, ), 'defaults' => array ( 0 => NULL, 1 => NULL, ), 'metadata' => array ( 'description' => 'Delete a line to given order', 'longDescription' => '', 'param' => array ( 0 => array ( 'type' => 'int', 'name' => 'id', 'description' => 'Id of order to update', 'properties' => array ( 'from' => 'path', ), 'label' => 'Id', 'default' => NULL, 'required' => true, 'children' => array ( ), ), 1 => array ( 'type' => 'int', 'name' => 'lineid', 'description' => 'Id of line to delete', 'properties' => array ( 'from' => 'path', ), 'label' => 'Lineid', 'default' => NULL, 'required' => true, 'children' => array ( ), ), ), 'url' => 'DELETE {id}/lines/{lineid}', 'return' => array ( 'type' => 'int', 'description' => '', ), 'throws' => array ( 0 => array ( 'code' => '401', 'message' => 'Unauthorized', 'exception' => 'RestException', ), 1 => array ( 'code' => '404', 'message' => 'Not Found', 'exception' => 'RestException', ), ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), ); //==== v1 orders/{n0}/contacts ==== $o['v1']['orders/{n0}/contacts'] = array ( 'GET' => array ( 'url' => 'orders/{id}/contacts', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'getContacts', 'arguments' => array ( 'id' => 0, 'type' => 1, ), 'defaults' => array ( 0 => NULL, 1 => '', ), 'metadata' => array ( 'description' => 'Get contacts of given order', 'longDescription' => 'Return an array with contact informations', 'param' => array ( 0 => array ( 'type' => 'int', 'name' => 'id', 'description' => 'ID of order', 'properties' => array ( 'from' => 'path', ), 'label' => 'Id', 'default' => NULL, 'required' => true, 'children' => array ( ), ), 1 => array ( 'type' => 'string', 'name' => 'type', 'description' => 'Type of the contact (BILLING, SHIPPING, CUSTOMER)', 'properties' => array ( 'from' => 'query', ), 'label' => 'Type', 'default' => '', 'required' => false, 'children' => array ( ), ), ), 'url' => 'GET {id}/contacts', 'return' => array ( 'type' => 'array', 'description' => 'data without useless information', ), 'throws' => array ( 0 => array ( 'code' => 500, 'message' => 'RestException', 'exception' => 'Exception', ), ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), ); //==== v1 orders/{n0}/contact/{n1}/{s2} ==== $o['v1']['orders/{n0}/contact/{n1}/{s2}'] = array ( 'POST' => array ( 'url' => 'orders/{id}/contact/{contactid}/{type}', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'postContact', 'arguments' => array ( 'id' => 0, 'contactid' => 1, 'type' => 2, ), 'defaults' => array ( 0 => NULL, 1 => NULL, 2 => NULL, ), 'metadata' => array ( 'description' => 'Add a contact type of given order', 'longDescription' => '', 'param' => array ( 0 => array ( 'type' => 'int', 'name' => 'id', 'description' => 'Id of order to update', 'properties' => array ( 'from' => 'path', ), 'label' => 'Id', 'default' => NULL, 'required' => true, 'children' => array ( ), ), 1 => array ( 'type' => 'int', 'name' => 'contactid', 'description' => 'Id of contact to add', 'properties' => array ( 'from' => 'path', ), 'label' => 'Contactid', 'default' => NULL, 'required' => true, 'children' => array ( ), ), 2 => array ( 'type' => 'string', 'name' => 'type', 'description' => 'Type of the contact (BILLING, SHIPPING, CUSTOMER)', 'properties' => array ( 'from' => 'path', ), 'label' => 'Type', 'default' => NULL, 'required' => true, 'children' => array ( ), ), ), 'url' => 'POST {id}/contact/{contactid}/{type}', 'return' => array ( 'type' => 'int', 'description' => '', ), 'throws' => array ( 0 => array ( 'code' => '401', 'message' => 'Unauthorized', 'exception' => 'RestException', ), 1 => array ( 'code' => '404', 'message' => 'Not Found', 'exception' => 'RestException', ), ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), 'DELETE' => array ( 'url' => 'orders/{id}/contact/{contactid}/{type}', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'deleteContact', 'arguments' => array ( 'id' => 0, 'contactid' => 1, 'type' => 2, ), 'defaults' => array ( 0 => NULL, 1 => NULL, 2 => NULL, ), 'metadata' => array ( 'description' => 'Unlink a contact type of given order', 'longDescription' => '', 'param' => array ( 0 => array ( 'type' => 'int', 'name' => 'id', 'description' => 'Id of order to update', 'properties' => array ( 'from' => 'path', ), 'label' => 'Id', 'default' => NULL, 'required' => true, 'children' => array ( ), ), 1 => array ( 'type' => 'int', 'name' => 'contactid', 'description' => 'Id of contact', 'properties' => array ( 'from' => 'path', ), 'label' => 'Contactid', 'default' => NULL, 'required' => true, 'children' => array ( ), ), 2 => array ( 'type' => 'string', 'name' => 'type', 'description' => 'Type of the contact (BILLING, SHIPPING, CUSTOMER).', 'properties' => array ( 'from' => 'path', ), 'label' => 'Type', 'default' => NULL, 'required' => true, 'children' => array ( ), ), ), 'url' => 'DELETE {id}/contact/{contactid}/{type}', 'return' => array ( 'type' => 'int', 'description' => '', ), 'throws' => array ( 0 => array ( 'code' => '401', 'message' => 'Unauthorized', 'exception' => 'RestException', ), 1 => array ( 'code' => '404', 'message' => 'Not Found', 'exception' => 'RestException', ), 2 => array ( 'code' => '500', 'message' => 'System error', 'exception' => 'RestException', ), ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), ); //==== v1 orders/{n0}/validate ==== $o['v1']['orders/{n0}/validate'] = array ( 'POST' => array ( 'url' => 'orders/{id}/validate', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'validate', 'arguments' => array ( 'id' => 0, 'idwarehouse' => 1, 'notrigger' => 2, ), 'defaults' => array ( 0 => NULL, 1 => 0, 2 => 0, ), 'metadata' => array ( 'description' => 'Validate an order', 'longDescription' => 'If you get a bad value for param notrigger check, provide this in body { "idwarehouse": 0, "notrigger": 0 }', 'param' => array ( 0 => array ( 'type' => 'int', 'name' => 'id', 'description' => 'Order ID', 'properties' => array ( 'from' => 'path', ), 'label' => 'Id', 'default' => NULL, 'required' => true, 'children' => array ( ), ), 1 => array ( 'type' => 'int', 'name' => 'idwarehouse', 'description' => 'Warehouse ID', 'properties' => array ( 'from' => 'body', ), 'label' => 'Idwarehouse', 'default' => 0, 'required' => false, 'children' => array ( ), ), 2 => array ( 'type' => 'int', 'name' => 'notrigger', 'description' => '1=Does not execute triggers, 0= execute triggers', 'properties' => array ( 'from' => 'body', ), 'label' => 'Notrigger', 'default' => 0, 'required' => false, 'children' => array ( ), ), ), 'url' => 'POST {id}/validate', 'throws' => array ( 0 => array ( 'code' => '304', 'message' => 'Not Modified', 'exception' => 'RestException', ), 1 => array ( 'code' => '401', 'message' => 'Unauthorized', 'exception' => 'RestException', ), 2 => array ( 'code' => '404', 'message' => 'Not Found', 'exception' => 'RestException', ), 3 => array ( 'code' => '500', 'message' => 'System error', 'exception' => 'RestException', ), ), 'return' => array ( 'type' => 'array', 'description' => '', ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), ); //==== v1 orders/{n0}/reopen ==== $o['v1']['orders/{n0}/reopen'] = array ( 'POST' => array ( 'url' => 'orders/{id}/reopen', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'reopen', 'arguments' => array ( 'id' => 0, ), 'defaults' => array ( 0 => NULL, ), 'metadata' => array ( 'description' => 'Tag the order as validated (opened)', 'longDescription' => 'Function used when order is reopend after being closed.', 'param' => array ( 0 => array ( 'type' => 'int', 'name' => 'id', 'description' => 'Id of the order', 'properties' => array ( 'from' => 'path', ), 'label' => 'Id', 'default' => NULL, 'required' => true, 'children' => array ( ), ), ), 'url' => 'POST {id}/reopen', 'return' => array ( 'type' => 'int', 'description' => '', ), 'throws' => array ( 0 => array ( 'code' => '304', 'message' => 'Not Modified', 'exception' => 'RestException', ), 1 => array ( 'code' => '400', 'message' => 'Bad Request', 'exception' => 'RestException', ), 2 => array ( 'code' => '401', 'message' => 'Unauthorized', 'exception' => 'RestException', ), 3 => array ( 'code' => '404', 'message' => 'Not Found', 'exception' => 'RestException', ), 4 => array ( 'code' => '405', 'message' => 'Method Not Allowed', 'exception' => 'RestException', ), ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), ); //==== v1 orders/{n0}/setinvoiced ==== $o['v1']['orders/{n0}/setinvoiced'] = array ( 'POST' => array ( 'url' => 'orders/{id}/setinvoiced', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'setinvoiced', 'arguments' => array ( 'id' => 0, ), 'defaults' => array ( 0 => NULL, ), 'metadata' => array ( 'description' => 'Classify the order as invoiced. Could be also called setbilled', 'longDescription' => '', 'param' => array ( 0 => array ( 'type' => 'int', 'name' => 'id', 'description' => 'Id of the order', 'properties' => array ( 'from' => 'path', ), 'label' => 'Id', 'default' => NULL, 'required' => true, 'children' => array ( ), ), ), 'url' => 'POST {id}/setinvoiced', 'return' => array ( 'type' => 'int', 'description' => '', ), 'throws' => array ( 0 => array ( 'code' => '400', 'message' => 'Bad Request', 'exception' => 'RestException', ), 1 => array ( 'code' => '401', 'message' => 'Unauthorized', 'exception' => 'RestException', ), 2 => array ( 'code' => '404', 'message' => 'Not Found', 'exception' => 'RestException', ), 3 => array ( 'code' => '405', 'message' => 'Method Not Allowed', 'exception' => 'RestException', ), ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), ); //==== v1 orders/{n0}/close ==== $o['v1']['orders/{n0}/close'] = array ( 'POST' => array ( 'url' => 'orders/{id}/close', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'close', 'arguments' => array ( 'id' => 0, 'notrigger' => 1, ), 'defaults' => array ( 0 => NULL, 1 => 0, ), 'metadata' => array ( 'description' => 'Close an order (Classify it as "Delivered")', 'longDescription' => '', 'param' => array ( 0 => array ( 'type' => 'int', 'name' => 'id', 'description' => 'Order ID', 'properties' => array ( 'from' => 'path', ), 'label' => 'Id', 'default' => NULL, 'required' => true, 'children' => array ( ), ), 1 => array ( 'type' => 'int', 'name' => 'notrigger', 'description' => 'Disabled triggers', 'properties' => array ( 'from' => 'body', ), 'label' => 'Notrigger', 'default' => 0, 'required' => false, 'children' => array ( ), ), ), 'url' => 'POST {id}/close', 'return' => array ( 'type' => 'int', 'description' => '', ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), ); //==== v1 orders/{n0}/settodraft ==== $o['v1']['orders/{n0}/settodraft'] = array ( 'POST' => array ( 'url' => 'orders/{id}/settodraft', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'settodraft', 'arguments' => array ( 'id' => 0, 'idwarehouse' => 1, ), 'defaults' => array ( 0 => NULL, 1 => -1, ), 'metadata' => array ( 'description' => 'Set an order to draft', 'longDescription' => '', 'param' => array ( 0 => array ( 'type' => 'int', 'name' => 'id', 'description' => 'Order ID', 'properties' => array ( 'from' => 'path', ), 'label' => 'Id', 'default' => NULL, 'required' => true, 'children' => array ( ), ), 1 => array ( 'type' => 'int', 'name' => 'idwarehouse', 'description' => 'Warehouse ID to use for stock change (Used only if option STOCK_CALCULATE_ON_VALIDATE_ORDER is on)', 'properties' => array ( 'from' => 'body', ), 'label' => 'Idwarehouse', 'default' => -1, 'required' => false, 'children' => array ( ), ), ), 'url' => 'POST {id}/settodraft', 'return' => array ( 'type' => 'array', 'description' => '', ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), ); //==== v1 orders/createfromproposal/{n0} ==== $o['v1']['orders/createfromproposal/{n0}'] = array ( 'POST' => array ( 'url' => 'orders/createfromproposal/{proposalid}', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'createOrderFromProposal', 'arguments' => array ( 'proposalid' => 0, ), 'defaults' => array ( 0 => NULL, ), 'metadata' => array ( 'description' => 'Create an order using an existing proposal.', 'longDescription' => '', 'param' => array ( 0 => array ( 'type' => 'int', 'name' => 'proposalid', 'description' => 'Id of the proposal', 'properties' => array ( 'from' => 'path', ), 'label' => 'Proposalid', 'default' => NULL, 'required' => true, 'children' => array ( ), ), ), 'url' => 'POST /createfromproposal/{proposalid}', 'return' => array ( 'type' => 'int', 'description' => '', ), 'throws' => array ( 0 => array ( 'code' => '400', 'message' => 'Bad Request', 'exception' => 'RestException', ), 1 => array ( 'code' => '401', 'message' => 'Unauthorized', 'exception' => 'RestException', ), 2 => array ( 'code' => '404', 'message' => 'Not Found', 'exception' => 'RestException', ), 3 => array ( 'code' => '405', 'message' => 'Method Not Allowed', 'exception' => 'RestException', ), ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), ); //==== v1 orders/{n0}/shipment ==== $o['v1']['orders/{n0}/shipment'] = array ( 'GET' => array ( 'url' => 'orders/{id}/shipment', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'getOrderShipments', 'arguments' => array ( 'id' => 0, ), 'defaults' => array ( 0 => NULL, ), 'metadata' => array ( 'description' => 'Get the shipments of an order', 'longDescription' => '', 'param' => array ( 0 => array ( 'type' => 'int', 'name' => 'id', 'description' => 'Id of the order', 'properties' => array ( 'from' => 'path', ), 'label' => 'Id', 'default' => NULL, 'required' => true, 'children' => array ( ), ), ), 'url' => 'GET {id}/shipment', 'return' => array ( 'type' => 'array', 'description' => '', ), 'throws' => array ( 0 => array ( 'code' => '401', 'message' => 'Unauthorized', 'exception' => 'RestException', ), 1 => array ( 'code' => '404', 'message' => 'Not Found', 'exception' => 'RestException', ), 2 => array ( 'code' => '500', 'message' => 'System error', 'exception' => 'RestException', ), ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), ); //==== v1 orders/{n0}/shipment/{n1} ==== $o['v1']['orders/{n0}/shipment/{n1}'] = array ( 'POST' => array ( 'url' => 'orders/{id}/shipment/{warehouse_id}', 'className' => 'Orders', 'path' => 'orders', 'methodName' => 'createOrderShipment', 'arguments' => array ( 'id' => 0, 'warehouse_id' => 1, ), 'defaults' => array ( 0 => NULL, 1 => NULL, ), 'metadata' => array ( 'description' => 'Create the shipment of an order', 'longDescription' => '', 'param' => array ( 0 => array ( 'type' => 'int', 'name' => 'id', 'description' => 'Id of the order', 'properties' => array ( 'from' => 'path', ), 'label' => 'Id', 'default' => NULL, 'required' => true, 'children' => array ( ), ), 1 => array ( 'type' => 'int', 'name' => 'warehouse_id', 'description' => 'Id of a warehouse', 'properties' => array ( 'from' => 'path', ), 'label' => 'Warehouse Id', 'default' => NULL, 'required' => true, 'children' => array ( ), ), ), 'url' => 'POST {id}/shipment/{warehouse_id}', 'return' => array ( 'type' => 'int', 'description' => '', ), 'throws' => array ( 0 => array ( 'code' => '401', 'message' => 'Unauthorized', 'exception' => 'RestException', ), 1 => array ( 'code' => '404', 'message' => 'Not Found', 'exception' => 'RestException', ), 2 => array ( 'code' => '500', 'message' => 'System error', 'exception' => 'RestException', ), ), 'access' => 'protected', 'class' => array ( 'DolibarrApiAccess' => array ( 'description' => '', 'properties' => array ( 'requires' => 'user,external', ), ), ), 'scope' => array ( '*' => '', 'RestException' => 'Luracast\\Restler\\RestException', ), 'resourcePath' => 'orders', 'classDescription' => 'API class for orders', ), 'accessLevel' => 2, ), ); //==================== apiVersionMap ==================== $o['apiVersionMap'] = array(); //==== apiVersionMap Luracast\Restler\Explorer ==== $o['apiVersionMap']['Luracast\Restler\Explorer'] = array ( 1 => 'Luracast\\Restler\\Explorer', ); //==== apiVersionMap DolibarrApiAccess ==== $o['apiVersionMap']['DolibarrApiAccess'] = array ( 1 => 'DolibarrApiAccess', ); //==== apiVersionMap Orders ==== $o['apiVersionMap']['Orders'] = array ( 1 => 'Orders', ); return $o;