Code Monkey home page Code Monkey logo

http-quiz's Introduction

HTTP Quiz

This quiz is about basic http responses. There is no database, model, routes, etc. like we did later in the week, just a few canned http request/responses.

Instructions

The quiz project includes basic scafolding. Implement the E2E tests and code for http responses indicated below:

  1. GET /api/penguins should return the following json response:
    ['bernice', 'bernard']
  2. GET /api/penguin/king?format=<simple|full> should return the following json response:
    • If format=full, then return:
      { 
          name: 'bernice',
          description: 'What a penguin!',
          age: 7
      }
    • If format=simple (or if format missing or something else), then return:
      { 
          name: 'bernice' 
      }
  3. DELETE /mistake should return the following html response:
    <p>All tracks covered</p>
  4. Any other response should return a 404 status code.

Goal is have PR with passing travis by end of allotted time.

Rules

  1. Make an initial commit when you start your work (HINT: Open your PR!)
  2. You have 35 minutes to complete what you can. You may not finish everything or get things exactly right (and you don't need to do so to get a passing score). Do focus on quality of what you complete and demonstrating familiarity with the development setup and process we have been using.
  3. You must complete this work on your own within the allotted time
    • Keep a good commit history to show progression of work.
    • You need to manage your time to have PR and last commit before deadline (remember, you can open PR and take advantage of travis checking your commits by pushing frequently).
  4. You may use normal resources that a software developer uses on the job (docs, google, your prior work)
  5. Use general best practices and common sense:
    • Highly recommended to implement what is needed, no more no less
    • Blind boilerplate or copying-in chunks of code will not be helpful and will likely create more work. Seriously, this is the one of the best ways to fail the quiz as you risk wasting your time trying to getting code (that never worked on this project) to work.
    • Focus effort on requirements of the lab. Seriously, read the [Instructions] section more than once paying attention to detail.
  6. Total possible points are 40. You will be graded out of 30 points
  7. Demonstrate what you can accomplish by having passing travis ci and showing working code.

http-quiz's People

Watchers

 avatar

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.