POST api/Drugs/AddCocktail
Request Information
URI Parameters
None.
Body Parameters
CocktailName | Description | Type | Additional 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 |
|
interface_code | string |
String length: inclusive between 0 and 10 |
|
old_code | integer |
None. |
|
DrugsForCocktails | Collection of DrugsForCocktails |
None. |
Request Formats
application/json
Sample:
text/json
Sample:
application/xml
Sample:
text/xml
Sample:
application/x-www-form-urlencoded
Sample:
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
CocktailName | Description | Type | Additional 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 |
|
interface_code | string |
String length: inclusive between 0 and 10 |
|
old_code | integer |
None. |
|
DrugsForCocktails | Collection of DrugsForCocktails |
None. |
Response Formats
application/json
Sample:
text/json
Sample:
application/xml
Sample:
text/xml
Sample:
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.