lewagon/garage-api

Name: garage-api

Owner: Le Wagon

Description: API for React+Redux Garage (repair shop) and cars ?

Created: 2017-09-27 17:23:36.0

Updated: 2018-03-22 09:29:37.0

Pushed: 2018-03-22 09:29:36.0

Homepage: https://wagon-garage-api.herokuapp.com/

Size: 26

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Wagon - Garage API ?

This API will help you store information about cars stored in your garage (repair shop ?). Four HTTP endpoints are here for you to use:

Retrieve the list of cars in a garage

Here's the HTTP request you can run. Be careful, :garage in the URL is dynamic!

 GET
 https://wagon-garage-api.herokuapp.com/:garage/cars

You may choose any name for your garage. Your buddy and you should have different garage names! Example of garage names: 'reparator-2000', 'bricolman', 'abitbol-and-son', etc.

Add a car to a garage

To add a new car to your garage, you need to send this HTTP request:

: POST
 https://wagon-garage-api.herokuapp.com/:garage/cars
er: Content-Type: application/json
:

"brand": "PEUGEOT",
"model": "106",
"owner": "ssaunier",
"plate": "123AZ56"

Get infos for a car

If you know the :id of a car, you can retrieve its information with:

 GET
 https://wagon-garage-api.herokuapp.com/cars/:id
Destroy a car

If you know the :id of a car, you can remove it with:

: DELETE
 https://wagon-garage-api.herokuapp.com/cars/:id

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.