Sample project template for a ScrudBeans project. Demonstrates ScrudBeans generated component classes like repositories, services and controllers, as well as custom/explicit components. Both Maven and Gradle are supported.
The following sections will guide you in building and testing the project.
Prerequisites: JDK 1.8+
Clone:
git clone https://github.com/manosbatsis/scrudbeans-template-kotlin.git
Navigate to the project directory
cd scrudbeans-template
Build and execute the REST Assured integration tests using Maven:
./mvnw clean verify install
or, if you prefer Gradle:
./gradlew clean build integrationTest
To launch the app with Maven:
./mvnw spring-boot:run
or Gradle:
./gradlew bootRun
You can now browse the Swagger UI documentation at http://localhost:8080/swagger-ui.html
RSQL is a query language for parametrized filtering of entries in RESTful APIs. The project endpoints support RSQL by conversion to JPA criteria. For eample, to search for orders between two timestamps (i.e. Dec 10th, 2018), one would use a URL like http://localhost:37059/api/rest/orders?filter=createdDate%3Dge%3D2018-12-10T00%3A00%3BcreatedDate%3Dle%3D2018-12-10T23%3A59%3A59.999999999