Giter Site home page Giter Site logo

http-mini-autos's Introduction

HTTP-mini

  1. Fork, clone, and then cd into directory.
  2. npm install
  3. Below are instructions on how to interact with an api for a used car salesman.
  • Run npm start
  • Your task is to use the information below to make the buttons and selects functional.

Vehicles

URL: https://joes-autos.herokuapp.com

GET
  • Get all vehicles - '/api/vehicles'

  • Get vehicles by color - '/api/vehicleByColor'

    • Send with query: 'color'
  • Get vehicles newer than specified year - '/api/vehiclesByYear'

    • Send with query: 'year'
  • Get vehicles by make - '/api/vehiclesByMake'

    • Send with query: 'make'
POST
  • Add vehicle - '/api/vehicles'
    • Need make, model, year, color, price in body of request. ID is auto-generated.
    • Responds with updated vehicles array.
PUT
  • Increase/decrease price of car by $1000 - '/api/vehicle/:id/:change'
    • id is the id of the vehicle
    • Value of change needs to be either up or down.
    • Responds with updated vehicles array.
DELETE
  • Delete vehicle by id - '/api/vehicles/:id'
    • Responds with updated vehicles array.

Potential Buyers

GET
  • Get all buyers '/api/buyers'

  • Get buyers by name - '/api/buyersByName'

    • Send with query: 'name'
POST
  • Add potential buyer - '/api/buyers'
    • Need name, phone, address in body of request. ID is auto-generated.
    • Responds with updated buyers array.
DELETE
  • Delete buyer by id - '/api/buyers/:id'
    • Responds with updated buyers array.

http-mini-autos's People

Contributors

joeblank avatar

Watchers

James Cloos 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.