-
Notifications
You must be signed in to change notification settings - Fork 0
sdeemene/go-travel2
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
1. Create User => localhost:8084/api/v1/auth/register :=POST { "firstname" : "Saint", "lastname" : "Deemene", "gender": "Male", "email": "[email protected]", "phone": "0706740000", "password" : "saint" } 2. Create Address => localhost:8084/api/v1/addresses :=POST { "country": "Nigeria", "state": "Port Harcourt", "city": "Diobu" } 3. Create Place => localhost:8084/api/v1/places :=POST { "name" : "Port Harcourt Golf Club", "description": "The Port Harcourt Golf club is a prime recreational destination in the old eastern region of Nigeria. It was established as far back as 1928 even before Nigeria gained independence.", "price": 456.90, "phone": "08097650000", "email": "[email protected]", "addressid": "6227d8fd3d0429e9bc0ed96d" } 4. Create Travel => localhost:8084/api/v1/travels :=POST { "userId": "622a71509c31c1f1095fe749", "placeId": "6229ad1fd7abae8f7c9dbc28", "travelDate" : "2022-03-10", "returnDate": "2022-05-10" } 5. Login => localhost:8084/api/v1/auth/login :=POST { "email": "[email protected]", "password" : "saint" } Dependencies go get -u github.com/gorilla/mux go get github.com/spf13/viper go get go.mongodb.org/mongo-driver/mongo go get github.com/google/uuid go get github.com/hako/durafmt go get github.com/rs/cors go get github.com/gorilla/handlers
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published