POST api/Drugs/insertDrug

Request Information

URI Parameters

None.

Body Parameters

Drug
NameDescriptionTypeAdditional information
drug_code

integer

None.

drug_name

string

Required

String length: inclusive between 0 and 100

drug_hebrew_name

string

String length: inclusive between 0 and 100

dosage

decimal number

None.

drug_unit

integer

None.

capacity

integer

None.

dosage_unit

string

String length: inclusive between 0 and 20

times_per_unit

integer

None.

dosage_from

integer

None.

active

string

String length: inclusive between 0 and 1

barcode

string

None.

interface_code

string

String length: inclusive between 0 and 10

old_code

integer

None.

custPermanentDrugs

Collection of custPermanentDrug

None.

Units

Unit

None.

DrugsForCocktails

Collection of DrugsForCocktails

None.

DrugsForInsures

Collection of DrugsForInsures

None.

DrugsInPrescriptions

Collection of DrugsInPrescription

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'CustDemog.Customer'. Path 'custPermanentDrugs[0].Customers.Countries.Customers'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'CustDemog.Customer'. Path 'custPermanentDrugs[0].Customers.Countries.Customers'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'CustDemog.DrugsForCocktails' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'CustDemog.DrugsForCocktails' contains cycles and cannot be serialized if reference tracking is disabled.

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

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.