POST api/XTRF/Vendor/VendorSetting/addVendorPriceListSetting?fromModule={fromModule}&ip={ip}

保存 供应商 价格表 配置

Request Information

URI Parameters

NameDescriptionTypeAdditional information
fromModule

string

Required

ip

string

Required

Body Parameters

XTRF_Vendor_PriceList_Settings
NameDescriptionTypeAdditional information
VendorId

供应商 id

integer

Required

mode

mode

integer

None.

jobTypes

jobTypes

Collection of integer

Required

sourceLanguages

sourceLanguages

Collection of integer

Required

targetLanguages

targetLanguages

Collection of integer

Required

miniRate

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "VendorId": 1,
  "mode": 2,
  "jobTypes": [
    1,
    2
  ],
  "sourceLanguages": [
    1,
    2
  ],
  "targetLanguages": [
    1,
    2
  ],
  "miniRate": 3.0
}

application/xml, text/xml

Sample:
<XTRFSYSController.XTRF_Vendor_PriceList_Settings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Base.Controllers">
  <VendorId>1</VendorId>
  <jobTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </jobTypes>
  <miniRate>3</miniRate>
  <mode>2</mode>
  <sourceLanguages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </sourceLanguages>
  <targetLanguages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </targetLanguages>
</XTRFSYSController.XTRF_Vendor_PriceList_Settings>

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

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="VendorId"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="mode"

2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="jobTypes[0]"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="jobTypes[1]"

2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="sourceLanguages[0]"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="sourceLanguages[1]"

2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="targetLanguages[0]"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="targetLanguages[1]"

2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="miniRate"

3
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

resultSuccess
NameDescriptionTypeAdditional information
code

0 =SUCCESS,1=ERROR,401TIMEOUT

integer

None.

result

Object

None.

message

string

None.

type

string

None.

page

string

None.

pageSize

string

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "result": {},
  "message": "sample string 3",
  "type": "sample string 4",
  "page": "sample string 5",
  "pageSize": "sample string 6"
}

application/xml, text/xml

Sample:
<resultSuccess xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Base.Entities">
  <code>1</code>
  <message>sample string 3</message>
  <page>sample string 5</page>
  <pageSize>sample string 6</pageSize>
  <result />
  <type>sample string 4</type>
</resultSuccess>

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="code"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="result"

System.Object
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="message"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="type"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="page"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="pageSize"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e--