POST api/Images/GetImageByType

Request Information

URI Parameters

None.

Body Parameters

RequestGetImageByType
NameDescriptionTypeAdditional information
ReturnSizeType

EnumImageSizeType

None.

ImageResourceId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "ReturnSizeType": 0,
  "ImageResourceId": "4266dc3d-ed44-4f1b-9dbd-2b9e00f1c6cc"
}

application/xml, text/xml

Sample:
<RequestGetImageByType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Request.Images">
  <ImageResourceId>4266dc3d-ed44-4f1b-9dbd-2b9e00f1c6cc</ImageResourceId>
  <ReturnSizeType>Default</ReturnSizeType>
</RequestGetImageByType>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RequestGetImageByType'.

Response Information

Resource Description

ExecuteResultOfImageStore
NameDescriptionTypeAdditional information
Data

ImageStore

None.

Success

boolean

None.

IsSuccess

boolean

None.

Msg

string

None.

Code

integer

None.

StatusCode

string

None.

Errors

Dictionary of string [key] and string [value]

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "ImageResourceId": "379f79be-5a5c-4c90-a8bb-0472d26091f9",
    "ImageSizeType": 0,
    "URLPath": "sample string 2",
    "PhysicsPath": "sample string 3",
    "IsShow": true,
    "ID": "92f17dd6-7029-4dcb-8df5-92256785d9bf",
    "CreateMemberID": "5a78f53f-2ba6-4b53-862c-1821ad364b66",
    "CreateDate": "2020-11-29T14:52:47.626939+08:00",
    "EditeMemberID": "6a09f60c-fce7-4ab5-a52e-3fe69e9c23b1",
    "EditeDate": "2020-11-29T14:52:47.626939+08:00",
    "Flag": 10
  },
  "Success": true,
  "IsSuccess": true,
  "Msg": "sample string 3",
  "Code": 4,
  "StatusCode": "sample string 5",
  "Errors": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<ExecuteResultOfImageStoreRAoaKam_S xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.Core">
  <Code>4</Code>
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Errors>
  <IsSuccess>true</IsSuccess>
  <Msg>sample string 3</Msg>
  <StatusCode>sample string 5</StatusCode>
  <Success>true</Success>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Images">
    <_x003C_CreateDate_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Common">2020-11-29T14:52:47.626939+08:00</_x003C_CreateDate_x003E_k__BackingField>
    <_x003C_CreateMemberID_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Common">5a78f53f-2ba6-4b53-862c-1821ad364b66</_x003C_CreateMemberID_x003E_k__BackingField>
    <_x003C_EditeDate_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Common">2020-11-29T14:52:47.626939+08:00</_x003C_EditeDate_x003E_k__BackingField>
    <_x003C_EditeMemberID_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Common">6a09f60c-fce7-4ab5-a52e-3fe69e9c23b1</_x003C_EditeMemberID_x003E_k__BackingField>
    <_x003C_Flag_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Common">10</_x003C_Flag_x003E_k__BackingField>
    <_x003C_ID_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Common">92f17dd6-7029-4dcb-8df5-92256785d9bf</_x003C_ID_x003E_k__BackingField>
    <d2p1:ImageResourceId>379f79be-5a5c-4c90-a8bb-0472d26091f9</d2p1:ImageResourceId>
    <d2p1:ImageSizeType>Default</d2p1:ImageSizeType>
    <d2p1:IsShow>true</d2p1:IsShow>
    <d2p1:PhysicsPath>sample string 3</d2p1:PhysicsPath>
    <d2p1:URLPath>sample string 2</d2p1:URLPath>
  </Data>
</ExecuteResultOfImageStoreRAoaKam_S>