POST api/Visit/UploadDocFromOldSys

Request Information

URI Parameters

None.

Body Parameters

FileUpload
NameDescriptionTypeAdditional information
fileString

string

None.

custId

string

None.

pasport

string

None.

oldVisitCode

integer

None.

visitDate

string

None.

operName

string

None.

externalAccessionNumber

string

None.

Request Formats

application/json, text/json

Sample:
{
  "fileString": "sample string 1",
  "custId": "sample string 2",
  "pasport": "sample string 3",
  "oldVisitCode": 4,
  "visitDate": "sample string 5",
  "operName": "sample string 6",
  "externalAccessionNumber": "sample string 7"
}

application/xml, text/xml

Sample:
<FileUpload xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLMedical.Visits">
  <custId>sample string 2</custId>
  <externalAccessionNumber>sample string 7</externalAccessionNumber>
  <fileString>sample string 1</fileString>
  <oldVisitCode>4</oldVisitCode>
  <operName>sample string 6</operName>
  <pasport>sample string 3</pasport>
  <visitDate>sample string 5</visitDate>
</FileUpload>

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

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.