xebia-functional / nine-cards-v2

An Open Source Android Launcher built with Scala on Android
http://www.9cards.io/
Other
183 stars 20 forks source link

Create algebra for persistence services #836

Closed franciscodr closed 8 years ago

franciscodr commented 8 years ago

We should create algebras for all the persistence services.

franciscodr commented 8 years ago
QA instructions

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:

Some endpoints that you should check are:

  1. 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>"
  2. 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"
       ]
     }
    }'
fedefernandez commented 8 years ago

Works flawlesly, good job.