- Sinatra
- Active Records
- Json
- Geocoder
- Sqlite
- Rspec
$ bundle
$ rake db:migrate
$ rake db:seed
$ rackup
POST /ride/cabs_near
$ curl -i -H 'Accept: application/json' \
-d 'address=Av+Paulista' http://localhost:9292/cab/cabs_near"
GET /passenger/
GET /cab/
$ curl -i -H 'Accept: application/json' http://localhost:9292/passenger/
$ curl -i -H 'Accept: application/json' http://localhost:9292/cab/
POST /passenger/new
POST /cab/new
$ curl -i -H 'Accept: application/json' \
-d 'name=Juca&email=juca@taxi.org&password=password&address=Av+São+João' \
http://localhost:9292/passenger/new
PATCH /passenger/id
PATCH /cab/id
$ curl -i -H 'Accept: application/json' \
-d 'address=Rua+Augusta' http://localhost:9292/passenger/id
DELETE /passenger/id
DELETE /cab/id
$ curl -i -H 'Accept: application/json' -X DELETE \
http://localhost:9292/passenger/id
POST /ride/new
$ curl -i -H 'Accept: application/json' \
-d 'cab_id=2&passanger_id=1&starts_at=AV+Brigadeiro+Faria+Lima&ends_at=Av+São+João' \
http://localhost:9292/ride/new
$ rspec
- More test
- Add Simulation rides price
- Oauth