heilog.ch.Api

<back to all web services

CreateRecipeAsDraftRequest

The following routes are available for this service:
POST/recipe/draft
CreateRecipeAsDraftRequest Parameters:
NameParameterData TypeRequiredDescription
RecipebodyCreateRecipeDtoNo
SourceRecipeIdbodylong?No
CreateRecipeDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
CustomerIdformlong?No
IngredientsformList<IngredientDto>No
ProtocolIngredientsformList<ProtocolIngredientDto>No
IllnessIdformlong?No
TargetTypeformTargetTypeNo
BottlingTypeformBottlingTypeNo
CommentformstringNo
SignatureformstringNo
RecipeStateformRecipeStateNo
PharmacistIdformlong?No
ManufacturedByGuidelineformboolNo
HygieneInstructionsFollowedformboolNo
CleaningInstructionsFollowedformboolNo
ManufactureInstructionsFollowedformboolNo
UnitsformintNo
SingleSizeformintNo
DripBottleChargeNoformstringNo
ProtocolSignatureformstringNo
LabelLanguageformLanguageCodeNo
LabelTypeformLabelTypeNo
TitleformstringNo
UsageformstringNo
IllnessformstringNo
CustomerPrefixformstringNo
CustomerNameformstringNo
IngredientPrefixformstringNo
IngredientTextformstringNo
DosagePrefixformstringNo
DosageTextformstringNo
EmulsionTextformstringNo
EthanolTextformstringNo
StorageTextformstringNo
ChargeNrPrefixformstringNo
AmountPrefixformstringNo
PricePrefixformstringNo
BarcodeformstringNo
PriceformfloatNo
ManufacturedPrefixformstringNo
BestUntilPrefixformstringNo
BestUntilformDateTime?No
ManufacturedformDateTimeNo
UnitOfMeasureformstringNo
IngredientDto Parameters:
NameParameterData TypeRequiredDescription
EssenceIdformlongNo
EssenceNameformstringNo
ProductGroupformProductGroupNo
EthanolformfloatNo
ContraIndicationformstringNo
IsAvailableformboolNo
ExpiryDateformDateTime?No
ChargeNoformstringNo
SymptomformstringNo
AmountformdecimalNo
ProductGroup Enum:
NameValue
Spagyric1
Herbs3
Tinctures4
MineralSolution6
LMPotency7
Custom9
BudExtract10
ProtocolIngredientDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
EssenceIdformlongNo
EssenceNameformstringNo
ProductGroupformProductGroupNo
EthanolformfloatNo
ExpiryDateformDateTime?No
ChargeNoformstringNo
SymptomformstringNo
IsAmountformdecimalNo
ShouldAmountformdecimalNo
TargetType Enum:
NameValue
Human1
Animal2
BottlingType Enum:
NameValue
AdHoc1
Bulk2
RecipeState Enum:
NameValue
Draft0
RecipeSentToPartner1
Printed2
UnusedPartnerRecipe3
LanguageCode Enum:
NameValue
de1
fr2
it3
LabelType Enum:
NameValue
SpagyricsHuman1
Tea2
SpagyricsAnimal3
Emulsion4
Tincture5
Homeopathie6
BudExtract7
Empty8
CreateRecipeAsDraftResponse Parameters:
NameParameterData TypeRequiredDescription
RecipeformCreateRecipeDtoNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /recipe/draft HTTP/1.1 
Host: heidak-api.build.exanic.ch 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"recipe":{"id":0,"customerId":0,"ingredients":[{"essenceId":0,"essenceName":"String","productGroup":1,"ethanol":0,"contraIndication":"String","isAvailable":false,"expiryDate":"0001-01-01T00:00:00.0000000","chargeNo":"String","symptom":"String","amount":0}],"protocolIngredients":[{"id":0,"essenceId":0,"essenceName":"String","productGroup":1,"ethanol":0,"expiryDate":"0001-01-01T00:00:00.0000000","chargeNo":"String","symptom":"String","isAmount":0,"shouldAmount":0}],"illnessId":0,"targetType":1,"bottlingType":1,"comment":"String","signature":"String","recipeState":0,"pharmacistId":0,"manufacturedByGuideline":false,"hygieneInstructionsFollowed":false,"cleaningInstructionsFollowed":false,"manufactureInstructionsFollowed":false,"units":0,"singleSize":0,"dripBottleChargeNo":"String","protocolSignature":"String","labelLanguage":1,"labelType":1,"title":"String","usage":"String","illness":"String","customerPrefix":"String","customerName":"String","ingredientPrefix":"String","ingredientText":"String","dosagePrefix":"String","dosageText":"String","emulsionText":"String","ethanolText":"String","storageText":"String","chargeNrPrefix":"String","amountPrefix":"String","pricePrefix":"String","barcode":"String","price":0,"manufacturedPrefix":"String","bestUntilPrefix":"String","bestUntil":"0001-01-01T00:00:00.0000000","manufactured":"0001-01-01T00:00:00.0000000","unitOfMeasure":"String"},"sourceRecipeId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"recipe":{"id":0,"customerId":0,"ingredients":[{"essenceId":0,"essenceName":"String","productGroup":1,"ethanol":0,"contraIndication":"String","isAvailable":false,"expiryDate":"0001-01-01T00:00:00.0000000","chargeNo":"String","symptom":"String","amount":0}],"protocolIngredients":[{"id":0,"essenceId":0,"essenceName":"String","productGroup":1,"ethanol":0,"expiryDate":"0001-01-01T00:00:00.0000000","chargeNo":"String","symptom":"String","isAmount":0,"shouldAmount":0}],"illnessId":0,"targetType":1,"bottlingType":1,"comment":"String","signature":"String","recipeState":0,"pharmacistId":0,"manufacturedByGuideline":false,"hygieneInstructionsFollowed":false,"cleaningInstructionsFollowed":false,"manufactureInstructionsFollowed":false,"units":0,"singleSize":0,"dripBottleChargeNo":"String","protocolSignature":"String","labelLanguage":1,"labelType":1,"title":"String","usage":"String","illness":"String","customerPrefix":"String","customerName":"String","ingredientPrefix":"String","ingredientText":"String","dosagePrefix":"String","dosageText":"String","emulsionText":"String","ethanolText":"String","storageText":"String","chargeNrPrefix":"String","amountPrefix":"String","pricePrefix":"String","barcode":"String","price":0,"manufacturedPrefix":"String","bestUntilPrefix":"String","bestUntil":"0001-01-01T00:00:00.0000000","manufactured":"0001-01-01T00:00:00.0000000","unitOfMeasure":"String"}}