A simple taxi booking system using Spring boot.
- Code - Contains the actual code (both code directory and zip of code directory)
- Documentation - Contains the design document
- Executable Jar - Contains project jar file
FAQ-
- How to configure the project?
- Install any IDE to import the project (example IntelliJ IDEA, Eclipse)
- Use open project option to import the project
- How to run the project in Linux?
- Run the executable jar provided in the project folder
- Use commands provided below to execute in terminal
-
Reset api:- curl -i -X PUT -H "Content-Type:application/json" http://localhost:8080/api/reset
-
Book api:- curl -i -X PUT -H "Content-Type:application/json" http://localhost:8080/api/book/ -d '{ "source" :{ "x" :-3, "y" :-5}, "destination": { "x":-3, "y":-6} }'
-
Check api:- curl http://localhost:8080/api/check
-
Tick api curl -i -X PUT -H "Content-Type:application/json" http://localhost:8080/api/tick
-
- How to run the project in windows?
-
Once the sucessful build is completed click on run
-
Go to browser and run below urls:
- Reset:- http://localhost:8080/api/reset
- Check:- http://localhost:8080/api/check To run book api, please download Postman
- Book: - http://localhost:8080/api/book/ Body:- { "source" :{ "x" :-3, "y" :-5}, "destination": { "x":-3, "y":-6} }
- Tick:- http://localhost:8080/api/tick
Thank you! Enjoy!