Coder Social home page Coder Social logo

cs373-idb's People

Contributors

eshabanov avatar jkettler avatar lapluviosilla avatar mcdong avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cs373-idb's Issues

Improve base layout / style

Improve look & feel of base layout either just with bootstrap or some freely available bootstrap layout/theme.

API - test cases

Create the test cases and a test file for the API in Python and commit it to the repo

Update Apiary to reflect django models

Author field is gone from bill, and instead there is now a "authors" relationship on bill with a reciprocal "bill_set" on senator. This new many to many relation replaces the old one-to-many author relationship. Apiary needs to be updated accordingly

Additionally, we must make certain that other changes did not go unnoticed, and that apiary is in sync with our django models.

Adapt the RESTful API with the grader's corrections.

-0 Rename 'author' to 'authors'
-0 Use null instead of 'none'
-0 For votes on a bill, use integer keys instead of strings (since they are IDs)
-1 POST body shouldn't be an array

  • Check if many-to-many relationships should be removed from the API, i.e. things like listing the committees for a senator and listing all the senators in a committee. If not, then add list of bills authored to senator
  • Post the API to the public repository.

API and Models meshing

I went over the Django models and compared them with my API and fixed a few bugs with the API and only noticed one minor thing with the models.py file:

In the Senator class, instead of "full_name" i have the field "name" in the API. Just "name" seems preferable to "full_name" for consistency.

That's the only thing that needs to be changed right now though.

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.