Giter Club home page Giter Club logo

b3-java-poker_ynov_game_api's Introduction

poker-ynov-game-api

/game/startingChips

Get minimum amount to start a game.


GET

Responses

Code Description
200 return startingChips
500 Internal server error

/users/join

Add a user to a game and returns the game after adding the user.


POST
Name Located in Description Required Schema
id body User Id Yes number
email body User Email Yes string
username body User Username Yes string
password body User Password Yes string
money body User Money Yes number

Responses

Code Description
200 return game
500 Internal server error

/action

Proceed an action and returns game after action process.


POST
Name Located in Description Required Schema
gameId body Game Id Yes number
userId body User Id Yes number
actionType body Action played (CALL FOLD BET)
value body money bet only if actionType = "BET" No number

Responses

Code Description
200 return game
500 Internal server error

/game/{gameId}/users/{userId}/cards


GET

Returns the downcards of the user for a game.

Name Located in Description Required Schema
gameId path Game Id Yes number
userId path User Id Yes number

Responses

Code Description
200 return game
500 Internal server error

/game/{gameId}/users/previous/cards


GET

Returns the downcards of the previous round for the users for a game.

Name Located in Description Required Schema
gameId path Game Id Yes number

Responses

Code Description
200 return game
500 Internal server error

/game/{gameId}/previous/communitycards


GET

Returns the community cards of the previous round for a game.

Name Located in Description Required Schema
gameId path Game Id Yes number

Responses

Code Description
200 return game
500 Internal server error

/users/{userId}/stats


GET

Returns the community cards of the previous round for a game.

Name Located in Description Required Schema
userId path User Id Yes number

Responses

Code Description
200 return stats of user
500 Internal server error

b3-java-poker_ynov_game_api's People

Contributors

guillaumehanotel avatar louis-saglio avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.