POST api/Formula/FormulaCalculation2?token={token}&gsbm={gsbm}&xb={xb}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

string

Required

gsbm

string

Required

xb

string

Required

Body Parameters

APIGSCS
NameDescriptionTypeAdditional information
gs

GS

None.

listGSCS

Collection of GSCS

None.

Request Formats

application/json, text/json

Sample:
{
  "gs": {
    "GSBM": "sample string 1",
    "GSMC": "sample string 2",
    "JSGS": "sample string 3"
  },
  "listGSCS": [
    {
      "CSID": 1,
      "CSBS": "sample string 2",
      "CSMC": "sample string 3",
      "Value": "sample string 4"
    },
    {
      "CSID": 1,
      "CSBS": "sample string 2",
      "CSMC": "sample string 3",
      "Value": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<APIGSCS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common">
  <gs>
    <GSBM>sample string 1</GSBM>
    <GSMC>sample string 2</GSMC>
    <JSGS>sample string 3</JSGS>
  </gs>
  <listGSCS>
    <GSCS>
      <CSBS>sample string 2</CSBS>
      <CSID>1</CSID>
      <CSMC>sample string 3</CSMC>
      <Value>sample string 4</Value>
    </GSCS>
    <GSCS>
      <CSBS>sample string 2</CSBS>
      <CSID>1</CSID>
      <CSMC>sample string 3</CSMC>
      <Value>sample string 4</Value>
    </GSCS>
  </listGSCS>
</APIGSCS>

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

Response Information

Resource Description

JsonResult
NameDescriptionTypeAdditional information
code

string

None.

date

string

None.

result

Object

None.

count

integer

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "code": "sample string 1",
  "date": "sample string 2",
  "result": {},
  "count": 4,
  "message": "sample string 5"
}

application/xml, text/xml

Sample:
<JsonResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common">
  <code>sample string 1</code>
  <count>4</count>
  <date>sample string 2</date>
  <message>sample string 5</message>
  <result />
</JsonResult>