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

Add GET api/v1/games/:game_id/players/:id endoint #27

Closed
Patrick-Duvall opened this issue Sep 7, 2019 · 0 comments · Fixed by #34
Closed

Add GET api/v1/games/:game_id/players/:id endoint #27

Patrick-Duvall opened this issue Sep 7, 2019 · 0 comments · Fixed by #34
Assignees
Projects

Comments

@Patrick-Duvall
Copy link
Collaborator

Patrick-Duvall commented Sep 7, 2019

This endpoint returns a players specific deck and discard info in the format

{
  playerId: 99,
  deck: [{
    name: "Gold",
    category: ["Treasure"],
    cost: 6,
    image: "Gold.jpg",
    spendingPower: 3,
    id: 1515
  },
    {
    name: "Gold",
    category: ["Treasure"],
    cost: 6,
    image: "Gold.jpg",
    spendingPower: 3,
    id: 1515
  },
{
    name: "Gold",
    category: ["Treasure"],
    cost: 6,
    image: "Gold.jpg",
    spendingPower: 3,
    id: 1515
  }],
  discard: [{
    name: "Estate",
    type: ["Victory"],
    cost: 2,
    image: "Estate.jpg",
    victoryPoints: 1,
    id: 6123
  },
{
    name: "Estate",
    type: ["Victory"],
    cost: 2,
    image: "Estate.jpg",
    victoryPoints: 1,
    id: 6123
  }
  ]}
}

Requires #33

@Patrick-Duvall Patrick-Duvall created this issue from a note in Initial (To do) Sep 7, 2019
@BrennanAyers BrennanAyers moved this from To do to In progress in Initial Sep 7, 2019
This was referenced Sep 7, 2019
@BrennanAyers BrennanAyers moved this from In progress to Review in Initial Sep 9, 2019
Initial automation moved this from Review to Done Sep 9, 2019
@BrennanAyers BrennanAyers moved this from Done to Staging in Initial Sep 11, 2019
@DavisC0801 DavisC0801 moved this from Staging to QA in Initial Sep 12, 2019
@BrennanAyers BrennanAyers moved this from QA to Production in Initial Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Initial
  
Production
Development

Successfully merging a pull request may close this issue.

2 participants