POST api/ReadForm

Caller Posts the text data to be processed as a form (as a MIME encoded file) Returns the name-value pairs of form

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Name-Value pairs, as extracted from the the text file

FormFields
NameDescriptionTypeAdditional information
allFields

Collection of FieldInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "allFields": [
    {
      "fieldName": "sample string 1",
      "fieldValue": "sample string 2"
    },
    {
      "fieldName": "sample string 1",
      "fieldValue": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<FormFields xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParserService.Controllers">
  <allFields>
    <FieldInfo>
      <fieldName>sample string 1</fieldName>
      <fieldValue>sample string 2</fieldValue>
    </FieldInfo>
    <FieldInfo>
      <fieldName>sample string 1</fieldName>
      <fieldValue>sample string 2</fieldValue>
    </FieldInfo>
  </allFields>
</FormFields>