heilog.ch.Api

<back to all web services

CreateEssenceRequest

The following routes are available for this service:
POST/essence
CreateEssenceRequest Parameters:
NameParameterData TypeRequiredDescription
TemporaryImageFileIdbodystringNo
TemporaryImageFileExtensionbodystringNo
EssencebodyEssenceDetailDtoNo
EssenceDetailDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
EthanolformdoubleNo
ProductGroupformProductGroupNo
FileNameformstringNo
IsActiveformboolNo
LocalizationsformList<EssenceLocalizationDto>No
ProductGroup Enum:
NameValue
Spagyric1
Herbs3
Tinctures4
MineralSolution6
LMPotency7
Custom9
BudExtract10
EssenceLocalizationDto Parameters:
NameParameterData TypeRequiredDescription
LanguageCodeformLanguageCodeNo
NameformstringNo
SummaryformstringNo
ShortDescriptionformstringNo
ContraIndicationformstringNo
LanguageCode Enum:
NameValue
de1
fr2
it3
CreateEssenceResponse Parameters:
NameParameterData TypeRequiredDescription
EssenceIdformlongNo

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

HTTP + JSV

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

POST /essence HTTP/1.1 
Host: heidak-api.build.exanic.ch 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	temporaryImageFileId: String,
	temporaryImageFileExtension: String,
	essence: 
	{
		id: 0,
		ethanol: 0,
		productGroup: 1,
		fileName: String,
		isActive: False,
		localizations: 
		[
			{
				languageCode: 1,
				name: String,
				summary: String,
				shortDescription: String,
				contraIndication: String
			}
		]
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	essenceId: 0
}