POST api/Drugs/SaveImageInValue?pMongoId={pMongoId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pMongoId

string

Required

Body Parameters

PrescriptionMongo
NameDescriptionTypeAdditional information
_id

ObjectId

None.

imageValue

string

None.

prescriptionId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "_id": "000000000000000000000000",
  "imageValue": "sample string 1",
  "prescriptionId": 2
}

application/xml, text/xml

Sample:
<BLDrug.PrescriptionMongo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLMedical.TablesManagement">
  <_id xmlns:d2p1="http://schemas.datacontract.org/2004/07/MongoDB.Bson">
    <d2p1:_a>0</d2p1:_a>
    <d2p1:_b>0</d2p1:_b>
    <d2p1:_c>0</d2p1:_c>
  </_id>
  <imageValue>sample string 1</imageValue>
  <prescriptionId>2</prescriptionId>
</BLDrug.PrescriptionMongo>

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

application/bson

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

Response Information

Resource Description

None.