POST api/Contract/CloseUploadContract

Request Information

URI Parameters

None.

Body Parameters

RequestContract
NameDescriptionTypeAdditional information
econtractId

decimal number

None.

memberId

globally unique identifier

None.

categoryType

integer

None.

AccountStr

string

None.

PwdStr

string

None.

Request Formats

application/json, text/json

Sample:
{
  "econtractId": 1.0,
  "memberId": "110483bb-0d4c-4769-9c72-87e6d8b4a1df",
  "categoryType": 3,
  "AccountStr": "sample string 4",
  "PwdStr": "sample string 5"
}

application/xml, text/xml

Sample:
<RequestContract xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Contract.Request">
  <AccountStr>sample string 4</AccountStr>
  <PwdStr>sample string 5</PwdStr>
  <categoryType>3</categoryType>
  <econtractId>1</econtractId>
  <memberId>110483bb-0d4c-4769-9c72-87e6d8b4a1df</memberId>
</RequestContract>

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

Response Information

Resource Description

ExecuteResult
NameDescriptionTypeAdditional information
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:
{
  "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:
<ExecuteResult 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>
</ExecuteResult>