-
Notifications
You must be signed in to change notification settings - Fork 0
REST API
[GET] /rest/brewery/<id>
- Gets a brewery by its ID
[GET] /rest/brewery/list
- Gets all breweries
[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
[GET] /rest/servingsize/<id>
- Gets a serving size by its ID
[GET] /rest/servingsize/list
- Gets all serving sizes
[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>
[POST] /rest/drinklog/delete/<id>
[POST] /rest/beer/log/<id>
[GET] /rest/cellar/<id>
[POST] /rest/cellar/create
[POST] /rest/cellar/update/<id>
[POST] /rest/cellar/delete/<id>
[POST] /rest/cellar/log/<id>
[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
[GET] /rest/user/<id>
[GET] /rest/user/list