HDC WS for converting attachment files
Returns original files for given state
name | type | description | constraints |
---|---|---|---|
limit | query | - raster file entries limit per request | long |
offset | query | - offset of raster file entries | long |
state | query | - file state |
media type | data type | description |
---|---|---|
application/json | object (JSON) | - list of files |
GET /api/admin/attachment
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
...
Converts one file with given id.
name | type | description | constraints |
---|---|---|---|
fileId | query | - file identifier | long |
versionId | query | long |
media type | data type | description |
---|---|---|
application/json | array of HdcFileModelTO (JSON) | - long running process description |
GET /api/admin/attachment/convertondemand
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"md5" : "...",
"versionId" : 12345,
"mimeType" : "...",
"status" : "CONVERTED",
"errorMessage" : "...",
"fullPath" : {
"fileSystem" : {
"userPrincipalLookupService" : { },
"fileStores" : { },
"open" : true,
"rootDirectories" : { },
"separator" : "...",
"readOnly" : true
},
"root" : { },
"fileName" : { },
"parent" : { },
"absolute" : true,
"nameCount" : 12345
},
"derivedId" : 12345,
"fileName" : "...",
"fileId" : 12345,
"originalId" : 12345,
"size" : 12345,
"path" : "..."
} ]
media type | data type |
---|---|
application/json | array of HdcFileId (JSON) |
media type | data type | description |
---|---|---|
application/json | object (JSON) |
POST /api/admin/attachment/convertondemand
Content-Type: application/json
Accept: application/json
[ {
"fileId" : 12345,
"versionId" : 12345
} ]
HTTP/1.1 201 Created
Content-Type: application/json
...
Converts all files with given state.
name | type | description |
---|---|---|
state | path | - file state. Recommended states for this operation: UPLOADED, UNCONVERTIBLE, IN_QUEUE, CONVERTING |
media type | data type | description |
---|---|---|
application/json | HdcLazyTilingStateTO (JSON) | - long running process description |
GET /api/admin/attachment/convert/{state}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{ }