Coder Social home page Coder Social logo

cricfanatasyapi's People

Contributors

mideveloper avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

cricfanatasyapi's Issues

Team Leader Board API

Team Leader Board API will return teams by scores in descending order. Team's score will be calculated by summing up players score comprising in a team.

Rest API: /teams/leaderboard
HttpMethod: Get
Authentication: Required
Response:
{
"result": [{
"id": 1,
"name": "team1",
"score": 30,
"team_owner": "S. Ikhlaq",
"team_owner_pic": "http://abc.com/a.jpg"
},
{
"id": 2,
"name": "team2",
"score": 50,
"team_owner": "Jitander",
"team_owner_pic": ""
}
]
}

Data Migration

  • Players data migration
  • Match schedule migration
  • Teams migration
  • Players by team migration
  • Match stats migration

get Formations

Get formation will return formation types, formation types are players type mix in a team.
There will be three type of static formations

  1. 5 Batsmen, 5 Bowlers, 1 Wicket Keeper
  2. 4 Batsmen, 4 Bowlers, 1 Wicket Keeper, 2 All Rounders
  3. 3 Batsmen, 5 Bowlers, 2 All Rounders, 1 Wicket Keeper

Rest API: /formations
HttpMethod: Get
Authentication: Required
Response: {
"result": [{
"batsmen": 5,
"bowlers": 5,
"all_rounders": 0,
"wicket_keeper": 1,
"name": "formation1",
"id" : 1
}, {
"batsmen": 4,
"bowlers": 4,
"all_rounders": 2,
"wicket_keeper": 1,
"name": "formation2",
"id" : 2
}, {
"batsmen": 3,
"bowlers": 5,
"all_rounders": 2,
"wicket_keeper": 1,
"name": "formation3",
"id" : 3
}]
}

Create Team API

Create team API will create the team for user of 11 players, comprising with user selection formation.

REST API
HttpMethod: POST
Request Payload:
{
"players" : [1,2,3,4,192,6,7,8,9,10,129],
"name" : "Team 1",
"captain" : 1
}
Response:
{
"result" : {
"id" : 1,
}
}

Authentication API

User must login before using any feature of the site, credentials of users will be same as cogs. Once user gets login, user will be presented an authentication token, through that token user will access Apis of the system.

REST API: /auth/login
HTTP Method: POST
Request Payload: { user_name: "", password: "" }
Response Body: {
"result": {
"id" : 1,
"full_name": "",
"profile_picture": "",
"auth_token": ""}
}

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.