GET api/Drugs/GetCocktailsList

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Cocktail
NameDescriptionTypeAdditional information
cocktail_code

integer

None.

cocktail_name

string

Required

String length: inclusive between 0 and 100

remarks

string

String length: inclusive between 0 and 15

active

string

String length: inclusive between 0 and 1

DrugsForCocktails

Collection of DrugsForCocktails

None.

Response 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 for property 'Cocktails' with type 'CustDemog.Cocktail'. Path '[0].DrugsForCocktails[0]'.

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 for property 'Cocktails' with type 'CustDemog.Cocktail'. Path '[0].DrugsForCocktails[0]'.

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/bson

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