heilog.ch.Api

<back to all web services

GetDurabilityPresetRequest

The following routes are available for this service:
GET/durabilitypreset
GetDurabilityPresetResponse Parameters:
NameParameterData TypeRequiredDescription
DurabilityPresetsformList<DurabilityPresetDto>No
DurabilityPresetDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
LabelTypeformLabelTypeNo
DurabilityYearsformintNo
LabelType Enum:
NameValue
SpagyricsHuman1
Tea2
SpagyricsAnimal3
Emulsion4
Tincture5
Homeopathie6
BudExtract7
Empty8

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

HTTP + CSV

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

GET /durabilitypreset HTTP/1.1 
Host: heidak-api.build.exanic.ch 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"durabilityPresets":[{"id":0,"labelType":1,"durabilityYears":0}]}