Wines

This module delivers all revelevant wine data accessable by token and registered domain, the wine data is filtered to show only public fields

Wines - Create new winepost

Create new wine

Url

https://api.vinou.de/service/wines/add

Parameter

Field Type Description
array Array

Wine array

Wines - Get single winepost

Access data from one single wine by giving one specific id

Url

https://api.vinou.de/service/wines/get

Parameter

Field Type Description
id Integer

Unique ID of wine (required).

{
  "token": "9a9a9a",
  "authid": "8b8b8b",
  "id": 185,
}
Wines - Get all winespost

Access all wines from the customer that registered the token

Url

https://api.vinou.de/service/wines/getAll

Parameter

Field Type Description
start Integer

Start index for list (optional).

max Integer

Maximum count of entries (optional).

{
  "token": "9a9a9a",
  "authid": "8b8b8b",
  "start": 10,
  "max": 5
}
Wines - Get all wines of categorypost

Access all wines from a given category id

Url

https://api.vinou.de/service/wines/getByCategory

Parameter

Field Type Description
id Integer

id of category (required).

sortBy String

property to sort the entries (optional).

sortDirectition String

ASC or DESC to manage sorting (optional).

Default value: ASC

{
  "token": "9a9a9a",
  "authid": "8b8b8b",
  "id": 1234,
  "sortBy": "crstamp",
  "sortDirection": "DESC"
}
Wines - Get all wines of typepost

Access all wines from a given type key

Url

https://api.vinou.de/service/wines/getByType

Parameter

Field Type Description
type String

special wine type (required).

start Integer

Start index for list (optional).

max Integer

Maximum count of entries (optional).

{
  "token": "9a9a9a",
  "authid": "8b8b8b",
  "type": "white",
  "start": 10,
  "max": 5
}
Wines - Get expertise pdf from winepost

Access all wines from a given type key

Url

https://api.vinou.de/service/wines/getExpertise

Parameter

Field Type Description
id Integer

Id of Wine.

HTTP/1.1 200 OK
{
 "pdf": "/PDF/185/Binary Riesling.pdf",
 "templateFile": "/var/www/CustomerData/14/Settings/Expertisetemplate/expertise-neu.vin",
 "template-date": 1501756559,
 "wine-date": 1505165324,
 "existingPDF-data": 1505172526,
 "action": "deliver existing PDF"
}