REST API for calendar booking assignment, using Grails 4.0.6.
- Java 11
- Gradle
Use the gradle wrapper to run tests using: ./gradlew check
To run the application, run:
./gradlew bootRun
Visit
http://localhost:8090/api/photographers/available?date=2020-11-25&bookingId=5
to get your available photographers.
When starting the application or running tests, test data from the assignment is added.
The booking used is hardcoded to the following:
{
"booking": {
"id": "3",
"durationInMinutes": 90
}
}