draft_madness_be's People
draft_madness_be's Issues
BE Destroy a UserLeague
- This endpoint should follow the pattern of
DELETE /api/v0/user_league
, and it should destroy an existing association between a user and a league. - The user_id and the league_id should be passed in via the body.
- When a UserLeague resource can be found with the passed in user_id and league_id, that resource should be destroyed, and a response will be sent back with a 204 status, with nothing returned in the body of the request.
- After implementing the happy path for this endpoint, run it, and check that when you call
GET /api/v0/users/:id/leagues
for the user in which you just deleted an association to a league, that you don’t see the recently removed league listed.
BE Get All Teams
- This endpoint should follow the pattern of
GET /api/v0/teams
- A JSON object is return with a top level key that points to a collection of teams in the tournament and their attributes.
BE Create a User
- This end point should follow the pattern of
POST /api/v0/user
and should pass ALL attributes required to create a user (username
,email
, andpassword_digest
) as JSON in the body of the request. - This end point should create a new user
- A successful response will return a response of a
201
status code, and return the newly created user - If any number of attributes are left out in the body of the request, a status code of
400
, as well as a descriptive error message should be sent back in the response.
BE Get All Leagues for a User
- This endpoint should follow the pattern of
GET /api/v0/leagues
- If a valid user id is passed in, a JSON object is sent back with a key that points a collection of that user's leagues. Each league contains all of its attributes.
BE User Login/Authentication
As a registered user, when I visit the welcome page,
I see a button to sign in as an existing user.
When I click the button, I am taken to a user login page.
(Where do we go after user login?) Dashboard?
BE Create a UserLeague
- This endpoint should follow the pattern of
POST /api/v0/user_leagues
, and should pass ALL attributes required to create a league (league_id, user_id). - When valid ids for User and League are passed in, a UserLeague will be created, and a response will be sent back with a 201 status, detailing that a User was added to a League.
- After implementing the happy path for this endpoint, run it, and check that when you call
GET /api/v0/users/:id/leagues
for the user in which you just added to a league, that you see the newly associated league listed. - If there already exists a UserLeague with that user_id and that market_id, a response with a 422 status code and a message informing the client that that association already exists, should be sent back.
BE Update a League
- This endpoint should follow the pattern of
PATCH /api/v0/league/:id
, and can pass any number and combination of attributes to be updated (name, draft_time, draft_date) as JSON in the body of the request. - This endpoint should update an existing league with any parameters sent in via the body.
- If someone were to try to update a league resource to have a nil or empty attribute, a proper 400-level status code as well as a descriptive error message should be sent back in the response.
- A successful response will return the newly updated vendor resource.
BE Create New User
As a visitor, when I visit the welcome page:
I see a button to Sign Up
When I click the Sign Up button,
I am taken to the New User page.
When I fill out all fields with valid information and click Submit,
I am taken to the User Dashboard.
BE Create New League
BE Get One Team
- This endpoint should follow the pattern of
GET /api/v0/teams/:id
- If a valid teams id is passed in, all team attributes should be returned
BE Get All Teams for a User
- This endpoints should follow the pattern of
GET /api/v0/user_leagues/:id/teams
- If a valid id is passed in, a JSON object is returned that has a key that points to a collection of that user_leagues (rosters) teams
BE Get One UserLeague
BE League Sad Path Testing
Sad path testing for:
- Create League
- Get All Leagues for a User
- Get One League
- Update a League
- Destroy a League
BE Get one League
- This endpoint should follow the pattern of GET
/api/v0/league /:id
.
Happy Path - If a valid league id is passed in, all league attributes should be returned.
BE Articles
get '/api/v0/articles'
BE Get One User
- This endpoint should follow the pattern of
GET /api/v0/users/:id
. - If a valid market id is passed in, all user attributes should be returned.
BE Create a Roster_Team (Pick)
- This end point should follow the pattern of
POST /api/v0/roster_teams
, and should pass ALL attributes required to create a roster_team(user_league_id
, andapi_team_id
) as a JSON in the body of the request. - This endpoint should create a new roster_team(pick)
BE Get All UserLeagues for a League
BE Destroy A League
- This endpoint should follow the pattern of
DELETE /api/v0/leagues
, and it should destroy any existing associations - The
league_id
should be passed in via the body. - When a league resource can be found with the passed in league_id, that resource should be destroyed, and a response will be sent back with a 204 status, with nothing returned in the body of the request.
- After implementing the happy path for this endpoint, run it, and check that when you call
GET /api/v0/users/:id/leagues
for the user in which you just deleted an association to a league, that you don’t see the recently removed league listed.
BE Invite Other Users to League
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.