Sample Rest application of booking cabs
Features
-
Add Asset(cab),View All Assets,single asset
-
Add Customer,View All Customers,single Customer
-
Book the cab for a customer (Not completed)
-
Add customer
Url-- http://localhost:8080/fcabs/customer/create
Method-- POST
Json Request
{ "name":"manikanata",
"mobileNo":"998088222",
"defaultLat":"88798"
}
2.List all customers
Url --http://localhost:8080/fcabs/customer/search
Method-- POST
3.Search a customer by name
Url --http://localhost:8080/fcabs/customer/search
Method-- POST
Json Request
{
"name":"manikanata"
}
4.View a single customer
List all customers
Url --http://localhost:8080/fcabs/customer/view/1
Method-- GET
Similar functionality in Asset(Cab creation)