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 .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.

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

<GetAllPresetsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/heilog.ch.Api.ServiceModel.Preset">
  <BarcodePresets xmlns:d2p1="http://schemas.datacontract.org/2004/07/heilog.ch.Api.Dto.Presets">
    <d2p1:BarcodePresetDto>
      <d2p1:Barcode>String</d2p1:Barcode>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:LabelType>SpagyricsHuman</d2p1:LabelType>
      <d2p1:Size>0</d2p1:Size>
    </d2p1:BarcodePresetDto>
  </BarcodePresets>
  <DurabilityPresets xmlns:d2p1="http://schemas.datacontract.org/2004/07/heilog.ch.Api.Dto.Presets">
    <d2p1:DurabilityPresetDto>
      <d2p1:DurabilityYears>0</d2p1:DurabilityYears>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:LabelType>SpagyricsHuman</d2p1:LabelType>
    </d2p1:DurabilityPresetDto>
  </DurabilityPresets>
  <LabelPreset xmlns:d2p1="http://schemas.datacontract.org/2004/07/heilog.ch.Api.Dto.Presets">
    <d2p1:FontSizeApplication>0</d2p1:FontSizeApplication>
    <d2p1:FontSizeIndication>0</d2p1:FontSizeIndication>
    <d2p1:FontSizeTitle>0</d2p1:FontSizeTitle>
    <d2p1:Id>0</d2p1:Id>
    <d2p1:Localizations>
      <d2p1:LabelPresetLocalizationDto>
        <d2p1:DescriptionApplication>String</d2p1:DescriptionApplication>
        <d2p1:Id>0</d2p1:Id>
        <d2p1:IndividualDosageText1>String</d2p1:IndividualDosageText1>
        <d2p1:IndividualDosageText2>String</d2p1:IndividualDosageText2>
        <d2p1:IndividualDosageText3>String</d2p1:IndividualDosageText3>
        <d2p1:IndividualDosageText4>String</d2p1:IndividualDosageText4>
        <d2p1:IndividualDosageText5>String</d2p1:IndividualDosageText5>
        <d2p1:IndividualDosageTitle1>String</d2p1:IndividualDosageTitle1>
        <d2p1:IndividualDosageTitle2>String</d2p1:IndividualDosageTitle2>
        <d2p1:IndividualDosageTitle3>String</d2p1:IndividualDosageTitle3>
        <d2p1:IndividualDosageTitle4>String</d2p1:IndividualDosageTitle4>
        <d2p1:IndividualDosageTitle5>String</d2p1:IndividualDosageTitle5>
        <d2p1:LanguageCode>de</d2p1:LanguageCode>
      </d2p1:LabelPresetLocalizationDto>
    </d2p1:Localizations>
  </LabelPreset>
  <PricePresets xmlns:d2p1="http://schemas.datacontract.org/2004/07/heilog.ch.Api.Dto.Presets">
    <d2p1:PricePresetDto>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:LabelType>SpagyricsHuman</d2p1:LabelType>
      <d2p1:Price>0</d2p1:Price>
      <d2p1:Size>0</d2p1:Size>
    </d2p1:PricePresetDto>
  </PricePresets>
</GetAllPresetsResponse>