Skip to content
starryknight64 edited this page Oct 24, 2014 · 4 revisions

Breweries

[GET] /rest/brewery/<id> - Gets a brewery by its ID

[GET] /rest/brewery/list - Gets all breweries

Beers

[GET] /rest/beer/<id> - Gets a beer by its ID

[GET] /rest/beer/brewery/<id> - Gets all beers belonging to a brewery by the brewery's ID

Serving Sizes

[GET] /rest/servingsize/<id> - Gets a serving size by its ID

[GET] /rest/servingsize/list - Gets all serving sizes

Drink Logs

[GET] /rest/drinklog/<id> - Gets a drink log by its ID

[GET] /rest/drinklog/list - Gets all drink logs for the current user

[GET] /rest/drinklog/list?userid=<id> - Gets all user drink logs for the specified user

[POST] /rest/drinklog/create - Creates a drink log for the current user. Requires a JSON object be passed to it that follows the same format as what is returned in /rest/drinklog/<id>


EVERYTHING UNDER HERE HASN'T BEEN IMPLEMENTED YET


[POST] /rest/drinklog/update/<id> - Updates a drink log by its ID

[POST] /rest/drinklog/delete/<id> - Deletes a drink log by its ID

[GET] /rest/drinklog/user/<id> - This will replace /rest/drinklog/list?userid=<id>

Beers

[POST] /rest/beer/log/<id> - Logs a beer by its ID

Cellars

[GET] /rest/cellar/<id> - Gets a user's cellar beer by the cellar's ID

[GET] /rest/cellar/user/<id> - Gets all cellar beers for a user by the user's ID

[POST] /rest/cellar/create - Creates a cellar beer for the current user

[POST] /rest/cellar/update/<id> - Updates a cellar beer by the cellar's ID

[POST] /rest/cellar/delete/<id> - Deletes a cellar beer by the cellar's ID

[POST] /rest/cellar/log/<id> - Logs a beer from the current user's cellar by the cellar's ID

Locations

[GET] /rest/continent/<id> - Gets a continent by its ID

[GET] /rest/continent/list - Gets all continents

[GET] /rest/subcontinent/<id> - Gets a sub-continent by its ID

[GET] /rest/subcontinent/list - Gets all sub-continents

[GET] /rest/subcontinent/continent/<id> - Gets all sub-continents in a continent by the continent's ID

[GET] /rest/country/<id> - Gets a country by its ID

[GET] /rest/country/list - Gets all countries

[GET] /rest/country/subcontinent/<id> - Gets all countries in a sub-continent by the sub-continent's ID

[GET] /rest/country/continent/<id> - Gets all countries in a continent by the continent's ID

[GET] /rest/state/<id> - Gets a state by its ID

[GET] /rest/state/list - Gets all states

Users

[GET] /rest/user/<id> - Gets a user account by its ID

[GET] /rest/user/list - Gets all user accounts

Beer Families

[GET] /rest/beerfamily/<id> - Gets a beer family style by its ID

[GET] /rest/beerfamily/list - Gets all beer family styles

Beer Styles

[GET] /rest/beerstyle/<id> - Gets a beer style by its ID

[GET] /rest/beerstyle/list - Gets all beer styles

[GET] /rest/beerstyle/family/<id> - Gets all beer styles for a beer family by the family's ID

Beer Sub-Styles

[GET] /rest/beersubstyle/<id> - Gets a beer sub-style by its ID

[GET] /rest/beersubstyle/list - Gets all beer sub-styles

[GET] /rest/beersubstyle/style/<id> - Gets all beer sub-styles for a beer style by the style's ID

[GET] /rest/beersubstyle/family/<id> - Gets all beer sub-styles for a beer family by the family's ID

Brewery Types

[GET] /rest/brewerytype/<id> - Gets a brewery type by its ID

[GET] /rest/brewerytype/list - Gets all brewery types