diff --git a/htdocs/api/class/api_documents.class.php b/htdocs/api/class/api_documents.class.php index 9794dad4a12..eb6380a19e4 100644 --- a/htdocs/api/class/api_documents.class.php +++ b/htdocs/api/class/api_documents.class.php @@ -49,20 +49,23 @@ class Documents extends DolibarrApi $this->db = $db; } + /** * Return a document * * @param string $module_part Module part for file * @param string $filename File name - * + * + * @url GET {module_part}/{filename} + * * @return array Array with data of file * @throws RestException */ - public function index($module_part, $filename) { - return array('note'=>'FeatureNotYetAvailable'); - } - - + public function get($module_part, $filename) { + return array('note'=>'FeatureNotYetAvailable'); + } + + /** * Push a file. * Test sample 1: { "filename": "mynewfile.txt", "modulepart": "facture", "ref": "FA1701-001", "subdir": "", "filecontent": "content text", "fileencoding": "", "overwriteifexists": "0" }.