POST fruitsapi/saveorupdatefinentry?preFix={preFix}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
preFix

string

Required

Body Parameters

FinEntry
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

integer

None.

CusId

integer

None.

CompanyId

integer

None.

Debit

decimal number

None.

Credit

decimal number

None.

Remark

string

None.

ImgPath

string

None.

Date

string

None.

Ecode

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "UserId": 2,
  "CusId": 3,
  "CompanyId": 4,
  "Debit": 5.0,
  "Credit": 6.0,
  "Remark": "sample string 7",
  "ImgPath": "sample string 8",
  "Date": "sample string 9",
  "Ecode": 10
}

text/html

Sample:
{"Id":1,"UserId":2,"CusId":3,"CompanyId":4,"Debit":5.0,"Credit":6.0,"Remark":"sample string 7","ImgPath":"sample string 8","Date":"sample string 9","Ecode":10}

application/xml, text/xml

Sample:
<FinEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FruitsApi.Models">
  <CompanyId>4</CompanyId>
  <Credit>6</Credit>
  <CusId>3</CusId>
  <Date>sample string 9</Date>
  <Debit>5</Debit>
  <Ecode>10</Ecode>
  <Id>1</Id>
  <ImgPath>sample string 8</ImgPath>
  <Remark>sample string 7</Remark>
  <UserId>2</UserId>
</FinEntry>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.