Skip to main content
Version: v5.0

File Set

Grouping of graphics files used to stream in a single websocket connection. File Sets are ephemeral and will be removed on the termination of the socket connection. When creating a File Set, if a graphics file is not cached already then it will be downloaded to the cache before the File Set is created. It is advisable to cache the graphics file before using it in a File Set. The Iaf-Viewer can switch between files in a File Set on the same websocket connection.

Note: The nsfilter (namespace filter) query parameter is mandatory for every request. It sets the context, helping you look up resources within that namespace. Example: POST /graphicssvc/api/vi/fileset?nsfilter=proj_DrZrSNrW

Create File Set#

Creates a grouping of files to be used over a websocket connection

Endpoints#

POST /graphicssvc/api/vi/fileset

Request#

Query parameters#

ParameterTypeDescriptionRequired
nsfilterStringFilter by namespace.Required

Body parameters#

ParameterTypeDescriptionRequired
_filesArray of ObjectArray of objects representing file ids and versions.Required
_files._fileIdStringId of requested file.Required
_files._fileVersionIdStringVersion of requested file.Optional
Body example#
{  "_files": [    {      "_fileId": "da9a12ac-699c-4232-8c06-fc789eb9d6e5"    },    {      "_fileId": "aa51b6b9-8c61-4bea-a5bf-66fd4d423f9e",      "_fileVersionId": "81266d27-7fb6-4c80-bf3c-77038ffdbfd7"    }  ]}

Response#

Response codes#

CodeDescription
200Success
400Bad Request

Response data example#

{  "_files": [    {      "_fileId": "da9a12ac-699c-4232-8c06-fc789eb9d6e5",      "_fileVersionId": "26066d22-5fbc-1c89-cf3a-21038ffdbad2",      "_fileName": "rac_basic.scz"    },    {      "_fileId": "aa51b6b9-8c61-4bea-a5bf-66fd4d423f9e",      "_fileVersionId": "81266d27-7fb6-4c80-bf3c-77038ffdbfd7",      "_fileName": "NCH.scz"    }  ]}

Get a File Set#

Endpoints#

GET /graphicssvc/api/vi/fileset/{fileSetId}

Request#

Path parameters#

ParameterTypeDescriptionRequired
fileSetIdStringThe FileSet's id.Required

Query parameters#

ParameterTypeDescriptionRequired
nsfilterStringFilter by namespace.Required

Response#

Response codes#

CodeDescription
200Success
400Bad Request
404File Not Found

Response data example#

{  "_files": [    {      "_fileId": "da9a12ac-699c-4232-8c06-fc789eb9d6e5",      "_fileVersionId": "26066d22-5fbc-1c89-cf3a-21038ffdbad2",      "_fileName": "rac_basic.scz"
    },    {      "_fileId": "aa51b6b9-8c61-4bea-a5bf-66fd4d423f9e",      "_fileVersionId": "81266d27-7fb6-4c80-bf3c-77038ffdbfd7",      "_fileName": "NCH.scz"    }  ]}

Delete a File Set#

Endpoints#

DELETE /graphicssvc/api/vi/fileset/{fileSetId}

Request#

Path parameters#

ParameterTypeDescriptionRequired
fileSetIdStringThe FileSet's id.Required

Query parameters#

ParameterTypeDescriptionRequired
nsfilterStringFilter by namespace.Required

Response#

Response codes#

CodeDescription
204No Content
404File Not Found

Response data#

None