POST api/Images/AddImage

Request Information

URI Parameters

None.

Body Parameters

RequestAddImage
NameDescriptionTypeAdditional information
DepartmentId

globally unique identifier

None.

MemberId

globally unique identifier

None.

TagName

string

None.

PhysicsPath

string

None.

ReturnSizeType

EnumImageSizeType

None.

IsShow

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "DepartmentId": "00ed0432-27f3-40ea-b84f-306f92e89057",
  "MemberId": "912b388b-54bf-4b46-b72d-302b5fb7fb98",
  "TagName": "sample string 3",
  "PhysicsPath": "sample string 4",
  "ReturnSizeType": 0,
  "IsShow": true
}

application/xml, text/xml

Sample:
<RequestAddImage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Request.Images">
  <DepartmentId>00ed0432-27f3-40ea-b84f-306f92e89057</DepartmentId>
  <IsShow>true</IsShow>
  <MemberId>912b388b-54bf-4b46-b72d-302b5fb7fb98</MemberId>
  <PhysicsPath>sample string 4</PhysicsPath>
  <ReturnSizeType>Default</ReturnSizeType>
  <TagName>sample string 3</TagName>
</RequestAddImage>

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 'RequestAddImage'.

Response Information

Resource Description

ExecuteResultOfImageResources
NameDescriptionTypeAdditional information
Data

ImageResources

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": {
    "DepartmentId": "ec4b034e-9da1-4d72-bd38-cd6f19e4d7a1",
    "MemberId": "6c7a6068-dfac-4f56-9ec8-b7dce91bb251",
    "TagId": "b4ae54d4-b3fa-4179-a6e6-5c1132314deb",
    "PhysicsPath": "sample string 4",
    "TagName": "sample string 5",
    "URLPath": "sample string 6",
    "ID": "51371e95-27cf-40ab-9f04-aa0ffd251afa",
    "CreateMemberID": "cb6642b2-0c49-4b7a-bd0a-e343729ea724",
    "CreateDate": "2020-11-29T14:46:41.0066601+08:00",
    "EditeMemberID": "92d1d57b-53ca-4176-8a5a-6a851dc04115",
    "EditeDate": "2020-11-29T14:46:41.0066601+08:00",
    "Flag": 12
  },
  "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:
<ExecuteResultOfImageResourcesRAoaKam_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:46:41.0066601+08:00</_x003C_CreateDate_x003E_k__BackingField>
    <_x003C_CreateMemberID_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Common">cb6642b2-0c49-4b7a-bd0a-e343729ea724</_x003C_CreateMemberID_x003E_k__BackingField>
    <_x003C_EditeDate_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Common">2020-11-29T14:46:41.0066601+08:00</_x003C_EditeDate_x003E_k__BackingField>
    <_x003C_EditeMemberID_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Common">92d1d57b-53ca-4176-8a5a-6a851dc04115</_x003C_EditeMemberID_x003E_k__BackingField>
    <_x003C_Flag_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Common">12</_x003C_Flag_x003E_k__BackingField>
    <_x003C_ID_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Common">51371e95-27cf-40ab-9f04-aa0ffd251afa</_x003C_ID_x003E_k__BackingField>
    <d2p1:DepartmentId>ec4b034e-9da1-4d72-bd38-cd6f19e4d7a1</d2p1:DepartmentId>
    <d2p1:MemberId>6c7a6068-dfac-4f56-9ec8-b7dce91bb251</d2p1:MemberId>
    <d2p1:PhysicsPath>sample string 4</d2p1:PhysicsPath>
    <d2p1:TagId>b4ae54d4-b3fa-4179-a6e6-5c1132314deb</d2p1:TagId>
    <d2p1:TagName>sample string 5</d2p1:TagName>
    <d2p1:URLPath>sample string 6</d2p1:URLPath>
  </Data>
</ExecuteResultOfImageResourcesRAoaKam_S>