How To Run
- assumes postgres/you've run the bootstrap.sql file
- you should straighten out your usernames/passwords
Passwords are located at:
src/main/scala/com/submarinerich/service/trophy/TrophyService.scala:37
Then you start up with:
rake run
It will run on port 8085, and you can see what api options are available.
the api available will be at http://localhost:8085/
make a new favorite
params:
source (required: Long)
destination (required: Long)
category (optional: Long)
unfavorite something
params:
source (required: Long)
destination (required: Long)
category (optional: Long)
get all the items that source has favorited where source is a Long
rate something
params:
source (required: Long)
destination (required: Long)
rating (required: Long)
see how many favorites an item has
see how many ratings an item has
get the average rating for item