POST Api/Specialists/AddDocument

Request Information

URI Parameters

None.

Body Parameters

SpecialistFileAttachmentVm
NameDescriptionTypeAdditional information
SpecialistId

integer

None.

AttachedDocument

Collection of byte

None.

MimeType

string

None.

FileSize

integer

None.

FileName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "specialistId": 1,
  "attachedDocument": "QEA=",
  "mimeType": "sample string 2",
  "fileSize": 3,
  "fileName": "sample string 4"
}

text/html

Sample:
{"specialistId":1,"attachedDocument":"QEA=","mimeType":"sample string 2","fileSize":3,"fileName":"sample string 4"}

application/xml, text/xml

Sample:
<SpecialistFileAttachmentVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UrgentCareExtra.ViewModels.ViewModels">
  <AttachedDocument>QEA=</AttachedDocument>
  <FileName>sample string 4</FileName>
  <FileSize>3</FileSize>
  <MimeType>sample string 2</MimeType>
  <SpecialistId>1</SpecialistId>
</SpecialistFileAttachmentVm>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.