Skip to content

manosbatsis/scrudbeans-template-kotlin

Repository files navigation

ScrudBeans Project Template for Kotlin Build Status

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 and Build

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

Manual Test

To launch the app with Maven:

./mvnw spring-boot:run

or Gradle:

./gradlew bootRun

./mvnw spring-boot:run

You can now browse the Swagger UI documentation at http://localhost:8080/swagger-ui.html

swagger-ui

RSQL Test

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

RSQL Example

About

Sample Kotlin project template for a SCRUDBeans project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages