Closed franciscodr closed 8 years ago
This issue changes the way how the persistence services work. So you should check that the endpoints that need information from the database keep working as before.
You should run both nine-cards-backend
and nine-cards-backend-google-play
apps:
sbt -Dconfig.file=modules/api/src/main/resources/localhost.conf
sbt run
Some endpoints that you should check are:
Get subscriptions
curl -X "GET" "http://localhost:8080/collections/subscriptions" \
-H "X-Auth-Token: 12345" \
-H "X-Android-Market-Localization: en-US" \
-H "X-Session-Token: <enter-session-token>" \
-H "X-Android-ID: <enter-android-id>"
Rank apps
curl -X "POST" "http://localhost:8080/applications/rank" \
-H "X-Auth-Token: 12345" \
-H "Content-Type: application/json" \
-H "X-Session-Token: <enter-session-token>" \
-H "X-Android-ID: <enter-android-id>" \
-d $'{
"location": "IT",
"items": {
"GAME_SPORTS": [
"com.firsttouchgames.story",
"com.miniclip.soccerstars"
],
"FINANCE": [
"com.cajasur.android",
"www.ingdirect.nativeframe"
],
"WEATHER": [
"cz.windguru.wgapp"
]
}
}'
Works flawlesly, good job.
We should create algebras for all the persistence services.