Giter Club home page Giter Club logo

jumble-apis's People

Contributors

rudrajyotib avatar

Watchers

 avatar

jumble-apis's Issues

Check uniqueness of user name

Functional feature
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Possible tech solution
A clear and concise description of what you want to happen.
Use this repository function in service and controller as is.

Create a challenge - basic

Functional feature
Add Challenge to a duel

API Change
Request structure
/duel/:duelId/challenge - POST
{
"sourceUserId":string,
"challenge":{
"challengeType":string,
"question":{
"word":string
}
}
}

Possible tech solutions
Post question as is against a new challenge ID

Add user name to user create request parameter

Functional feature
A link of user profile name and authenticator user ID should be maintained in user table

Possible tech solution
Add user name / profile ID to users collection object upon successful user creation in authenticator.

Mark duel as pending action

Functional feature
When a new challenge is created in an duel, mark duel status as Pending Action

Possible tech solution
When searching for pending duels for a user, search for duels with status as pendingAction and target user ID as the user id.

get friendship details

Functional feature
api to get duelId between friends

Possible tech solution
/user/getDuelId/:friend1/:friend2

check if the duel is challengeable

Functional feature
add an api to check if the source user is eligible to challenge a target user

Possible tech solution
/challenge/allowed/:sourceUserId/:targetUserId

Check if the friend status is confirmed, if not - return false
Check if the duel status is open - if yes - return true.
If the duel status is active and source user ID is requestor user ID - return true
otherwise, return false.

Fetch user email against a profile ID

Functional feature
When logging in, front end should retrieve the user email against a user ID

Possible tech solution
From user ID / profile ID - get email id.

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.