Skip to content

Taiterbase/vtrips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vtrips

Usage

Make sure Docker Desktop is running.

ctlptl delete cluster minikube
ctlptl create cluster minikube --registry=ctlptl-registry --minikube-start-flags="--cpus=2" --minikube-start-flags="--memory=4gb"
tilt up

Testing

curl -X POST "http://localhost:8080/v1/trips?org_id=test" -H "Content-Type: application/json" -d '{
  "status": "draft",
  "volunteer_limit": 10,
  "name": "Cleaning up Nepal",
  "description": "our mountains are piling up with trash from tourists! we need your help to clean them.",
  "housing_type": "camping"
}'
curl -X PUT "http://localhost:8080/v1/trips/:trip_id?org_id=test" -H "Content-Type: application/json" -d '{
  "status": "listed",
}'
curl -X GET "http://localhost:8080/v1/trips/:trip_id?org_id=test"
curl -X GET "http://localhost:8080/v1/trips?org_id=test"
curl -X GET "http://localhost:8080/v1/trips?org_id=test&status=listed"
curl -X GET "http://localhost:8080/v1/trips?org_id=test&status=listed&housing_type=camping"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published