POST api/ImageCompression/{key}/{guid}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| key | string |
Required |
|
| guid | string |
None. |
Body Parameters
ResizeParameterRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Collection of byte |
None. |
|
| MaxWidth | integer |
None. |
|
| MaxHeight | integer |
None. |
|
| Quality | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Data": "QEA=",
"MaxWidth": 1,
"MaxHeight": 2,
"Quality": 3
}
application/octet-stream
Sample:
{"Data":"QEA=","MaxWidth":1,"MaxHeight":2,"Quality":3}
application/xml, text/xml
Sample:
<ImageCompressionController.ResizeParameterRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Essence360PDF.Controllers"> <Data>QEA=</Data> <MaxHeight>2</MaxHeight> <MaxWidth>1</MaxWidth> <Quality>3</Quality> </ImageCompressionController.ResizeParameterRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ObjResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Message | string |
None. |
|
| Success | boolean |
None. |
|
| Data | Collection of byte |
None. |
Response Formats
application/json, text/json
Sample:
{
"Message": "sample string 1",
"Success": true,
"Data": "QEA="
}
application/octet-stream
Sample:
{"Message":"sample string 1","Success":true,"Data":"QEA="}
application/xml, text/xml
Sample:
<ObjResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Essence360PDF.Models"> <Data>QEA=</Data> <Message>sample string 1</Message> <Success>true</Success> </ObjResponse>