POST api/Award/Save

Request Information

URI Parameters

None.

Body Parameters

AwardSaveVM
NameDescriptionTypeAdditional information
BookId

integer

Required

AwardName

string

Required

String length: inclusive between 0 and 100

Code

string

String length: inclusive between 0 and 10

Amount

decimal number

Required

Status

string

Required

Matching regular expression pattern: A|I

AwardRemarks

string

String length: inclusive between 0 and 100

CreateUser

integer

Required

CreateIp

string

Required

String length: inclusive between 0 and 20

Request Formats

application/json, text/json

Sample:
{
  "BookId": 1,
  "AwardName": "sample string 2",
  "Code": "sample string 3",
  "Amount": 4.0,
  "Status": "sample string 5",
  "AwardRemarks": "sample string 6",
  "CreateUser": 7,
  "CreateIp": "sample string 8"
}

application/xml, text/xml

Sample:
<AwardSaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <Amount>4</Amount>
  <AwardName>sample string 2</AwardName>
  <AwardRemarks>sample string 6</AwardRemarks>
  <BookId>1</BookId>
  <Code>sample string 3</Code>
  <CreateIp>sample string 8</CreateIp>
  <CreateUser>7</CreateUser>
  <Status>sample string 5</Status>
</AwardSaveVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.