Search Files
GET/api/files/search/{keyword}
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| 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" } }