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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This API will help you store information about cars stored in your garage (repair shop ?). Four HTTP endpoints are here for you to use:
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.
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"
If you know the :id
of a car, you can retrieve its information with:
GET
https://wagon-garage-api.herokuapp.com/cars/:id
If you know the :id
of a car, you can remove it with:
: DELETE
https://wagon-garage-api.herokuapp.com/cars/:id