Coder Social home page Coder Social logo

shufflebox-backend's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shufflebox-backend's Issues

Can create multiple brownbags for the same Friday, assigned to the same user.

Description

  • When I POST to api/shuffle with type = 'brownbag'multiple times, the API creates a new brownbag for the upcoming Friday, regardless of whether one exists for that same Friday or not.
  • If the randomizer returns a user who already has a brownbag created for that same Friday, another brownbag is created for the same user, nonetheless.

Augment BrownBag data with user information

Description

  • Currently, the API returns BrownBag information that looks like:
{
  "id": 1,
  "date": "2017-03-24",
  "status": "next_in_line",
  "user": 1
}

This enhancement seeks augmentation of this data with user information, such that the data looks like:

{
  "id": 1,
  "name": "The Beast",
  "date": "2017-03-24",
  "email": "[email protected]",
  "avatar": "https://api.adorable.io/avatars/285/[email protected]",
  "status": "next_in_line"
}

Or

{
  "id": 1,
  "date": "2017-03-24",
  "status": "next_in_line",
  "user": {
    "id": 1,
    "username": "The Beast",
    "email": "[email protected]",
    "profile": {
      "avatar": "https://api.adorable.io/avatars/285/[email protected]",
      "birth_date": null,
      "bio": ""
    }
  }
}

Fixtures

Add test data for development purposes

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.