POST api/ApiMain/CPN_spOfficer_ByDepartId

Request Information

URI Parameters

None.

Body Parameters

JsonModel
NameDescriptionTypeAdditional information
func

string

None.

json

string

None.

CustomerCode

string

None.

API_key

string

None.

Key

string

None.

Request Formats

application/json, text/json

Sample:
{
  "func": "sample string 1",
  "json": "sample string 2",
  "CustomerCode": "sample string 3",
  "API_key": "sample string 4",
  "Key": "sample string 5"
}

text/html

Sample:
{"func":"sample string 1","json":"sample string 2","CustomerCode":"sample string 3","API_key":"sample string 4","Key":"sample string 5"}

application/xml, text/xml

Sample:
<JsonModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NETCO.ERP.API.Models">
  <API_key>sample string 4</API_key>
  <CustomerCode>sample string 3</CustomerCode>
  <Key>sample string 5</Key>
  <func>sample string 1</func>
  <json>sample string 2</json>
</JsonModel>

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

Response Information

Resource Description

string

Response Formats

application/json, text/json, text/html

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>