Skip to content

garimagupta715/CarRental

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1. download and extract file.
2. open in intellij
3. run main file as sprint boot application. it will run server at 8080 port
4. downnload postman for request of rest api
5. add a cab by admin: http://localhost:8080/api/saveCarsInfo
I/O: 
{
 "id": "1",
 "name": "i20",
 "location": 1,
 "availableFrom" : "2020-12-12",
 "requests": null
}
O/p:
{
    "id": "1",
    "location": 1,
    "availableFrom": "2020-12-12T00:00:00.000+00:00",
    "requestsServed": []
}

5. Get a cab by it's id : http://localhost:8080/api/getCarsInfo/1
{
    "id": "1",
    "location": 1,
    "availableFrom": "2020-12-12T00:00:00.000+00:00",
    "requestsServed": []
}


6. Get all Cab Info : http://localhost:8080/api/getAllCarsInfo
o/p:
[
    {
        "id": "1",
        "location": 1,
        "availableFrom": "2020-12-12T00:00:00.000+00:00",
        "requestsServed": []
    }
]

like that you can get others info also by hitting rest end point:

About

CarRental

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages