heilog.ch.Api

<back to all web services

GetAllPresetsRequest

The following routes are available for this service:
GET/presets
GetAllPresetsResponse Parameters:
NameParameterData TypeRequiredDescription
BarcodePresetsformList<BarcodePresetDto>No
LabelPresetformLabelPresetDtoNo
PricePresetsformList<PricePresetDto>No
DurabilityPresetsformList<DurabilityPresetDto>No
BarcodePresetDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
LabelTypeformLabelTypeNo
BarcodeformstringNo
SizeformintNo
LabelType Enum:
NameValue
SpagyricsHuman1
Tea2
SpagyricsAnimal3
Emulsion4
Tincture5
Homeopathie6
BudExtract7
Empty8
LabelPresetDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
FontSizeTitleformint?No
FontSizeApplicationformint?No
FontSizeIndicationformint?No
LocalizationsformList<LabelPresetLocalizationDto>No
LabelPresetLocalizationDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
LanguageCodeformLanguageCodeNo
DescriptionApplicationformstringNo
IndividualDosageTitle1formstringNo
IndividualDosageText1formstringNo
IndividualDosageTitle2formstringNo
IndividualDosageText2formstringNo
IndividualDosageTitle3formstringNo
IndividualDosageText3formstringNo
IndividualDosageTitle4formstringNo
IndividualDosageText4formstringNo
IndividualDosageTitle5formstringNo
IndividualDosageText5formstringNo
LanguageCode Enum:
NameValue
de1
fr2
it3
PricePresetDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
LabelTypeformLabelTypeNo
PriceformdecimalNo
SizeformintNo
DurabilityPresetDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
LabelTypeformLabelTypeNo
DurabilityYearsformintNo

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.

GET /presets HTTP/1.1 
Host: heidak-api.test.exanic.ch 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"barcodePresets":[{"id":0,"labelType":1,"barcode":"String","size":0}],"labelPreset":{"id":0,"fontSizeTitle":0,"fontSizeApplication":0,"fontSizeIndication":0,"localizations":[{"id":0,"languageCode":1,"descriptionApplication":"String","individualDosageTitle1":"String","individualDosageText1":"String","individualDosageTitle2":"String","individualDosageText2":"String","individualDosageTitle3":"String","individualDosageText3":"String","individualDosageTitle4":"String","individualDosageText4":"String","individualDosageTitle5":"String","individualDosageText5":"String"}]},"pricePresets":[{"id":0,"labelType":1,"price":0,"size":0}],"durabilityPresets":[{"id":0,"labelType":1,"durabilityYears":0}]}