Skip to content

wojciech-zurek/kotlin-spring-functional-coroutine-example

Repository files navigation

kotlin-spring-functional-coroutine-example

kotlin coroutine plus spring functional endpoints and reactive repositories example

Endpoints

Server: http://localhost:8080

    GET("/employees", employeeHandler::findAll)
    GET("/employees/{id}", employeeHandler::findById)
    POST("/employees", employeeHandler::new)
    PUT("/employees/{id}", employeeHandler::update)
    DELETE("/employees/{id}", employeeHandler::delete)

Download

    git clone git@github.com:wojciech-zurek/kotlin-spring-functional-coroutine-example.git

Run with gradle

    cd kotlin-spring-functional-coroutine-example/
    ./gradlew bootRun

Run as jar file

    cd kotlin-spring-functional-coroutine-example/
    ./gradlew bootJar
    java -jar build/libs/kotlin-spring-functional-coroutine-example-0.0.1-SNAPSHOT.jar r

Releases

No releases published

Packages

No packages published

Languages