POST api/Values/Uploadfile

Request Information

URI Parameters

None.

Body Parameters

UploadDocDetails
NameDescriptionTypeAdditional information
objUploadfileList

Collection of UploadfileList

None.

Request Formats

application/json, text/json

Sample:
{
  "objUploadfileList": [
    {
      "LetterTypeId": 1,
      "FileName": "sample string 2",
      "ProcessFlow": "QEA=",
      "UserID": 3,
      "ModifiedBy": 4,
      "isViewable": 5,
      "ReferenceNumber": 6,
      "Approve": 7,
      "Note": "sample string 8",
      "UploadDoc": "sample string 9",
      "SourceType": "sample string 10",
      "Token": "sample string 11"
    },
    {
      "LetterTypeId": 1,
      "FileName": "sample string 2",
      "ProcessFlow": "QEA=",
      "UserID": 3,
      "ModifiedBy": 4,
      "isViewable": 5,
      "ReferenceNumber": 6,
      "Approve": 7,
      "Note": "sample string 8",
      "UploadDoc": "sample string 9",
      "SourceType": "sample string 10",
      "Token": "sample string 11"
    }
  ]
}

text/html

Sample:
{"objUploadfileList":[{"LetterTypeId":1,"FileName":"sample string 2","ProcessFlow":"QEA=","UserID":3,"ModifiedBy":4,"isViewable":5,"ReferenceNumber":6,"Approve":7,"Note":"sample string 8","UploadDoc":"sample string 9","SourceType":"sample string 10","Token":"sample string 11"},{"LetterTypeId":1,"FileName":"sample string 2","ProcessFlow":"QEA=","UserID":3,"ModifiedBy":4,"isViewable":5,"ReferenceNumber":6,"Approve":7,"Note":"sample string 8","UploadDoc":"sample string 9","SourceType":"sample string 10","Token":"sample string 11"}]}

application/xml, text/xml

Sample:
<ValuesController.UploadDocDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <objUploadfileList>
    <ValuesController.UploadfileList>
      <Approve>7</Approve>
      <FileName>sample string 2</FileName>
      <LetterTypeId>1</LetterTypeId>
      <ModifiedBy>4</ModifiedBy>
      <Note>sample string 8</Note>
      <ProcessFlow>QEA=</ProcessFlow>
      <ReferenceNumber>6</ReferenceNumber>
      <SourceType>sample string 10</SourceType>
      <Token>sample string 11</Token>
      <UploadDoc>sample string 9</UploadDoc>
      <UserID>3</UserID>
      <isViewable>5</isViewable>
    </ValuesController.UploadfileList>
    <ValuesController.UploadfileList>
      <Approve>7</Approve>
      <FileName>sample string 2</FileName>
      <LetterTypeId>1</LetterTypeId>
      <ModifiedBy>4</ModifiedBy>
      <Note>sample string 8</Note>
      <ProcessFlow>QEA=</ProcessFlow>
      <ReferenceNumber>6</ReferenceNumber>
      <SourceType>sample string 10</SourceType>
      <Token>sample string 11</Token>
      <UploadDoc>sample string 9</UploadDoc>
      <UserID>3</UserID>
      <isViewable>5</isViewable>
    </ValuesController.UploadfileList>
  </objUploadfileList>
</ValuesController.UploadDocDetails>

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

Response Information

Resource Description

Dictionary of Object [key] and Object [value]

Response Formats

application/json, text/json, text/html

Sample:
{"System.Object":{},"System.Object":{}}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfanyTypeanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfanyTypeanyType>
    <Key />
    <Value />
  </KeyValueOfanyTypeanyType>
  <KeyValueOfanyTypeanyType>
    <Key />
    <Value />
  </KeyValueOfanyTypeanyType>
</ArrayOfKeyValueOfanyTypeanyType>