Publicly available synchronizable resources (custom_resources)

Requests

HTTP verb Endpoint Description

GET

/rest/v1/public/custom_resources/<file_path>

Obtaining a resource

Obtaining a resource

  • The file must be previously placed in the directory :SYNC_COMMON/custom_resources/<file_path>.

  • Attempting to specify ../ in <file_path> will return the response 404 Not found.

Request

Request example
GET /rest/v1/public/custom_resources/folder1/folder2/resource.json HTTP/1.1
$ curl -X GET \
       http://192.168.0.35/rest/v1/public/custom_resources/folder1/folder2/resource.json

Response

HTTP/1.1 200 OK
content-type: application/octet-stream

{"key1": "value1","key2":"value2"}

See also