´╗┐Glass Methods

A Glass represents a serving glass in which drinks are served.

Resource Properties

Name Description Returns
id the id of the glass string
name the name of the glass string
description The description of the glass string
languageBranch the language branch of the texts in the glass string
videos a list of videos array of video references

HTTP(s) GET Operations

Listing Glasses

/glasses/

Showing Specific Glass

/glasses/glass_id/

Auto Suggest (on name)

/quickSearch/glasses/some query

Connections

Drinks By Glass

/drinks/servedin/glass_id/

Images

http://assets.absolutdrinks.com/glasses/glass_id.format

JavaScript Client Library

Listing Glasses

addb.glasses().loadSet(function(query) { });
addb.glasses('es').skip(5).take(10).loadSet(function(query) { });

Loading Specific Glass

addb.glasses().load('cocktail-glass', function(glass) { });

Auto Suggest (on name)

addb.glasses().quickSearch('some query', function(query) { });

.NET Client Library

Listing Glasses

var glasses = ADDbClient.Glasses();
var nextGlasses = ADDbClient.Glasses().Skip(5).Take(10);

Loading Specific Glass(es)

var glass = ADDbClient.Glasses().Load("cocktail-glass");
var glasses = ADDbClient.Glasses("de").Load(new [] { "cocktail-glass", "wine-glass" });

Auto Suggest (on name)

var glasses = ADDbClient.Glasses().QuickSearch("some query");