This service uses MySQL as a database as defined in application.properties.
Replace the following values with correct values:
spring.datasource.url=jdbc:mysql://{URL}:{PORT}/booking
spring.datasource.username={USERNAME}
spring.datasource.password={PASSWORD}
The reservation service had the following endpoints
- POST /v1/booking This endpoint will create a booking
- PUT /v1/booking/{id} This endpoint will update a booking by id
- DELETE /v1/booking/{id} This endpoint will delete a booking by id
- GET /v1/booking/{id} This endpoint will fetch a booking by id
- GET /v1/booking This endpoint will fetch all bookings
The Postman collection for these endpoints with input payloads to the service can be found here
This section contains two tests scripts
- load_test.sh does a quick and basic load testing
- perf_test.jmx does a performance test using Jmeter