Skip to content

pujaraniyadav/cmpe273-assignment3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

cmpe273-assignment3

Steps to compile

git clone https://github.com/pujaraniyadav/cmpe273-assignment3.git
cd cmpe273-assignment3
export GOPATH=$PWD/gocode
go build

Steps to start the REST server

./uber-app

It will start the REST server in :12345

Steps to test

  1. Create Trip
export DATA='{"starting_from_location_id":"1", "location_ids": [ "2", "3", "4", "5" ]}'
curl -v -X POST -d "$DATA" http://localhost:12345/trips | python -m json.tool
  1. Lookup Trip
curl -v -X GET http://127.0.0.1:12345/trips/0 | python -m json.tool
  1. Take Trip
curl -v -X PUT http://localhost:12345/trips/0/request | python -m json.tool

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages