<back to all web services
CreateRecipeTemplateRequest
The following routes are available for this service:POST | /recipe/template | | |
---|
CreateRecipeTemplateRequest Parameters:Name | Parameter | Data Type | Required | Description |
---|
RecipeTemplate | body | RecipeTemplateDto | No | |
RecipeTemplateDto Parameters:Name | Parameter | Data Type | Required | Description |
---|
Id | form | long | No | |
Name | form | string | No | |
UseRecipeTemplateNameForLabel | form | bool | No | |
CreatedAt | form | DateTime | No | |
TargetType | form | TargetType | No | |
Ingredients | form | List<IngredientDto> | No | |
Indication | form | string | No | |
IllnessId | form | long? | No | |
TargetType Enum:Name | Value | |
---|
Human | 1 | |
Animal | 2 | |
IngredientDto Parameters:Name | Parameter | Data Type | Required | Description |
---|
EssenceId | form | long | No | |
EssenceName | form | string | No | |
ProductGroup | form | ProductGroup | No | |
Ethanol | form | float | No | |
ContraIndication | form | string | No | |
IsAvailable | form | bool | No | |
ExpiryDate | form | DateTime? | No | |
ChargeNo | form | string | No | |
Symptom | form | string | No | |
Amount | form | decimal | No | |
ProductGroup Enum:Name | Value | |
---|
Spagyric | 1 | |
Herbs | 3 | |
Tinctures | 4 | |
MineralSolution | 6 | |
LMPotency | 7 | |
Custom | 9 | |
BudExtract | 10 | |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /recipe/template HTTP/1.1
Host: heidak-api.build.exanic.ch
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CreateRecipeTemplateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/heilog.ch.Api.ServiceModel.Recipe.Template">
<RecipeTemplate xmlns:d2p1="http://schemas.datacontract.org/2004/07/heilog.ch.Api.Dto.Recipe">
<d2p1:CreatedAt>0001-01-01T00:00:00</d2p1:CreatedAt>
<d2p1:Id>0</d2p1:Id>
<d2p1:IllnessId>0</d2p1:IllnessId>
<d2p1:Indication>String</d2p1:Indication>
<d2p1:Ingredients xmlns:d3p1="http://schemas.datacontract.org/2004/07/heilog.ch.Api.Dto.Ingredient">
<d3p1:IngredientDto>
<d3p1:Amount>0</d3p1:Amount>
<d3p1:ChargeNo>String</d3p1:ChargeNo>
<d3p1:ContraIndication>String</d3p1:ContraIndication>
<d3p1:EssenceId>0</d3p1:EssenceId>
<d3p1:EssenceName>String</d3p1:EssenceName>
<d3p1:Ethanol>0</d3p1:Ethanol>
<d3p1:ExpiryDate>0001-01-01T00:00:00</d3p1:ExpiryDate>
<d3p1:IsAvailable>false</d3p1:IsAvailable>
<d3p1:ProductGroup>Spagyric</d3p1:ProductGroup>
<d3p1:Symptom>String</d3p1:Symptom>
</d3p1:IngredientDto>
</d2p1:Ingredients>
<d2p1:Name>String</d2p1:Name>
<d2p1:TargetType>Human</d2p1:TargetType>
<d2p1:UseRecipeTemplateNameForLabel>false</d2p1:UseRecipeTemplateNameForLabel>
</RecipeTemplate>
</CreateRecipeTemplateRequest>