jumble-apis's People
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.
User creation should check for AppUserId duplicatae
Functional feature
Before adding a user to authenticator repo, check if app user id is duplicate
Possible tech solution
If appUserId already exists - return error
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.
Validation before marking duel - Success, Failure, Attempt
Functional feature
A duel can be marked success only if the duel is in status inProgress
A duel can be attempted only if it is pendingAction
Possible tech solution
Change in service and repo.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.