Search Files

GET/api/files/search/{keyword}

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
keyword String Search keywords, matched as a substring of the file name or the description
curl -X GET "https://yoursite.com/api/files/search/acme" \
  -H "authtoken: YOUR_API_TOKEN"

Success-Response:

HTTP/1.1 200 OK
[
  { "id": "12", "file_name": "file64b1c2-quote.pdf", "source": "project" },
  { "id": "3", "file_name": "file71ff90-contract.pdf", "source": "general" }
]

Error-Response:

HTTP/1.1 404 Not Found
{ "status": false, "messages": { "error": "No data were found" } }
MethodGET
Path/api/files/search/{keyword}
GroupFiles
Sincev1.0.0
Defined inRestApi/Controllers/FilesController.php