Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server should select per game the topics randomly from the pool of topics #18

Open
HelmetRemover opened this issue Apr 27, 2016 · 1 comment

Comments

@HelmetRemover
Copy link
Contributor

No description provided.

eladg added a commit that referenced this issue May 3, 2016
Big WIP commit:
- New question now returns within a category
- Breaking API updates to adopt new model
- Games now have categories when created (stupid ugly JSON to string
patch)
- Fixed Question’s enum’s string to integer issue (DBs are not
migratable, please db:reset and seed for new change).
- Seed data now randomize categories for each question
@eladg
Copy link
Contributor

eladg commented May 3, 2016

From api-example.md

1. Start a new game

curl -X POST http://localhost:3000/api/v1/games/new -d '{"user_id": 22}' --header "Content-Type:application/json"
Response:
{
  "status": null,
  "token": "JB1wRZ",
  "user_id": 22,
  "answered_correctly": 0,
  "questions_count": 0,
  "categories": [
    "communal_effort",
    "radical_self_expression",
    "inclusion",
    "gifting",
    "civic_responsibility"
  ]
}

Notice the new categories on Game's API model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants