Code Monkey home page Code Monkey logo

quiz-api's People

Contributors

waqarhocain avatar

Watchers

 avatar  avatar

quiz-api's Issues

Todos

  • Change Quiz serializer in quizzes app, so that currently logged in user is set as the user field by default.

Implement API views

Users Views

Note: All urls should be prefixed with /api/v1/.

url: auth/register/

  • POST request should create a new User in database

url: auth/login/

  • POST request should check provided email/password and return a Token

Quizzes Views

url: quizes/

  • GET request should return all the saved quizes
  • POST request should create a new quiz and return the created quiz with 201 status code.

url: quizes/int:pk/

  • GET request should return quiz, whose pk is passed in url, along with all questions that belong to that quiz. If provided pk is invalid, it should return a 404.

url: quizes/int:pk/questions/

  • GET request should return all questions of quiz specified by pk
  • POST request should create a new question and link it to quiz specified by pk

Implement Models

  • Add a custom user model
  • Add Quiz model
  • Add Question model
  • Add Answer model

Refactor tests

  • Remove duplication of test fixtures
  • Move appropriate model creations to setup_class or setup_module from setup_method as their creation might only be required once in whole class or module.

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.