POST api/Drugs/AddDrugToCock

Request Information

URI Parameters

None.

Body Parameters

DrugsForCocktails
NameDescriptionTypeAdditional information
index_code

integer

None.

drug_code

integer

None.

cocktail_code

integer

None.

dosag_form

integer

None.

dosage_unit

string

String length: inclusive between 0 and 100

dosage

decimal number

None.

times_per_unit

integer

None.

remark

string

String length: inclusive between 0 and 250

total

decimal number

None.

times_per_time_unit

integer

None.

guidelines

string

String length: inclusive between 0 and 250

drug_unit

integer

None.

Cocktails

Cocktail

None.

CommonSimpleTables

CommonSimpleTable

None.

Drugs

Drug

None.

Units

Unit

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.DrugsForCocktails'. Path 'Cocktails.DrugsForCocktails'.

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.DrugsForCocktails'. Path 'Cocktails.DrugsForCocktails'.

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 'System.Collections.Generic.List`1[[CustDemog.DrugsForCocktails, CustDemog, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' 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 'System.Collections.Generic.List`1[[CustDemog.DrugsForCocktails, CustDemog, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' 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 'DrugsForCocktails'.

application/bson

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

Response Information

Resource Description

None.