Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Introduction

The purpose of this service is to get tasting notes from vision database.

Request

Format :  https://<pathtoapi>/TastingNotes

Input parameters

Parameter

Details

Required

Example

response_type

Can supply with JSON OR XML

Default is JSON

Optional

 XML

product_codes

comma separated values to retrieve multiple producers

Optional

BAROLO,CHABLIS


Output

Name

Type

Length

Notes

ProductCode

AN

20

Unique field which links to the product table

Note

HTML

NoteDate

datetime

Format : 2017-11-16T00:00:00+00:00


JSON Response sample

[
  {
    "ProductCode": "BAROLO",
    "Note": "<p style=\"margin-top: 6.66px;margin-bottom: 6.66px;line-height: 1.15;text-align: left;\"><span style=\"font-family: 'Arial';font-size: 16px;color: #222222;background-color: #FFFFFF;\">For as pale and floral as it looks and smells, it is a punch on the tongue with its astringent tannin and high acidity. This astringency is actually a natural characteristic of the Nebbiolo grape and over time, the&nbsp;wine&nbsp;will smooth out.</span><span style=\"font-family: 'Verdana';font-size: 16px;\"></span></p><p style=\"margin-top: 0px;margin-bottom: 12px;line-height: 1.15;\"><span style=\"font-family: 'Verdana';font-size: 16px;\">&nbsp;</span></p>",
    "NoteDate": "2017-11-16T00:00:00"
  },
  {
    "ProductCode": "CHABLIS",
    "Note": "<p style=\"margin-top: 6.66px;margin-bottom: 6.66px;line-height: 1.15;text-align: left;\"><span style=\"font-family: 'Arial';font-size: 12px;color: #444444;background-color: #FFFFFF;\">Dry and crisp with lemon citrus fruit refreshing acidity and touches of minerality. Great paired with shellfish or even fish and chips.</span><span style=\"font-family: 'Verdana';font-size: 16px;\"></span></p>",
    "NoteDate": "2017-11-16T00:00:00"
  }
]


XML Response sample

<TastingNotes>
    <TastingNote>
        <ProductCode>BAROLO</ProductCode>
        <Note>&lt;p style="margin-top: 6.66px;margin-bottom: 6.66px;line-height: 1.15;text-align: left;"&gt;&lt;span style="font-family: 'Arial';font-size: 16px;color: #222222;background-color: #FFFFFF;"&gt;For as pale and floral as it looks and smells, it is a punch on the tongue with its astringent tannin and high acidity. This astringency is actually a natural characteristic of the Nebbiolo grape and over time, the&amp;nbsp;wine&amp;nbsp;will smooth out.&lt;/span&gt;&lt;span style="font-family: 'Verdana';font-size: 16px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0px;margin-bottom: 12px;line-height: 1.15;"&gt;&lt;span style="font-family: 'Verdana';font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;</Note>
        <NoteDate>2017-11-16T00:00:00+00:00</NoteDate>
    </TastingNote>
    <TastingNote>
        <ProductCode>CHABLIS</ProductCode>
        <Note>&lt;p style="margin-top: 6.66px;margin-bottom: 6.66px;line-height: 1.15;text-align: left;"&gt;&lt;span style="font-family: 'Arial';font-size: 12px;color: #444444;background-color: #FFFFFF;"&gt;Dry and crisp with lemon citrus fruit refreshing acidity and touches of minerality. Great paired with shellfish or even fish and chips.&lt;/span&gt;&lt;span style="font-family: 'Verdana';font-size: 16px;"&gt;&lt;/span&gt;&lt;/p&gt;</Note>
        <NoteDate>2017-11-16T00:00:00+00:00</NoteDate>
    </TastingNote>
</TastingNotes>

 


  • No labels