List Configurator Files
This request returns a list of files in a configurator.
Endpoints
- GET /configurators/{configuratorID}/files/{subDir}
Url
- configuratorID
-
The ID of the configurator
- subDir
-
The path to the directory of which the contents will be listed.
Header
- Authorization
-
Bearer {token} (User authorization needed)
Response
A JSON object with the list of objects (path + name, hash, hashfunction) of files and directories.
see format in the example below
Remark
The path to a file should start with "configurator" or "renderer". These main directories are used for the CAD system and the renderer respectively.
Example request
GET https://api.paramate.trinckle.com/configurators/2ab584fe-7e76-470f-8571-cb07cd8a58d2/files/configurator
-H Authorization: Bearer eyJhbGciOiJIUzI1Ni ... 3H8gC1k2DIKNEeJpb72yvmdY
Output
HTTP/1.1 200 OK
[
{
"fileName": "main.sps",
"hash": "99914b932bd37a50b983c5e7c90ae93b",
"hashFunction": "md5"
},
{
"fileName": "models/",
"hash": "d6a8d38967fe7439d763843674223409",
"hashFunction": "md5"
},
{
"fileName": "models/frame.stl",
"hash": "1924f074ca128fe1a3dcbdd734cfdbe7",
"hashFunction": "md5"
}
]
See also
- admin_configurators_files_get