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

[POST] /rest/drinklog/delete

Beers

[POST] /rest/beer/log/<id>

Cellars

[GET] /rest/cellar/<id>

[POST] /rest/cellar/create

[POST] /rest/cellar/update

[POST] /rest/cellar/delete

[POST] /rest/cellar/log/<id>

Locations

[GET] /rest/continent/<id>

[GET] /rest/continent/list

[GET] /rest/subcontinent/<id>

[GET] /rest/subcontinent/list

[GET] /rest/country/<id>

[GET] /rest/country/list

[GET] /rest/state/<id>

[GET] /rest/state/list

Users

[GET] /rest/user/<id>

[GET] /rest/user/list