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
[ {
"errorMessage" : "...",
"size" : 12345,
"status" : "UPLOADED",
"md5" : "...",
"originalId" : 12345,
"mimeType" : "...",
"path" : "...",
"derivedId" : 12345,
"fileId" : 12345,
"versionId" : 12345,
"fileName" : "...",
"fullPath" : {
"root" : { },
"absolute" : true,
"parent" : { },
"fileSystem" : {
"fileStores" : { },
"userPrincipalLookupService" : { },
"readOnly" : true,
"rootDirectories" : { },
"separator" : "...",
"open" : true
},
"fileName" : { },
"nameCount" : 12345
}
} ]
| 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
[ {
"versionId" : 12345,
"fileId" : 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
{ }