Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add micronaut-rest module #36

Merged
merged 4 commits into from
Apr 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ reactor-test = '3.4.15'
[libraries]

managed-microstream-storage-embedded-configuration= { module = 'one.microstream:microstream-storage-embedded-configuration', version.ref = 'managed-microstream' }
managed-microstream-storage-restservice = { module = 'one.microstream:microstream-storage-restservice', version.ref = 'managed-microstream' }

micronaut-aop = { module = "io.micronaut:micronaut-aop" }
micronaut-http-client = { module = "io.micronaut:micronaut-http-client" }
Expand Down
15 changes: 15 additions & 0 deletions microstream-rest/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
plugins {
id("io.micronaut.build.internal.module")
}

dependencies {
implementation(libs.managed.microstream.storage.restservice)

testImplementation(project(":microstream"))
}

micronautBuild {
binaryCompatibility {
enabled.set(false)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright 2017-2022 original authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* This provides a REST API for the microstream low-level client to connect to.
*
* @author Tim Yates
* @see <a href="https://docs.microstream.one/manual/storage/rest-interface/index.html">REST Interface</a>
* @since 1.0.0
*/
package io.micronaut.microstream.rest;
16 changes: 16 additions & 0 deletions microstream-rest/src/test/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<configuration>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>

<root level="info">
<appender-ref ref="STDOUT" />
</root>
<logger name="io.micronaut.http.client" level="TRACE"/>
<logger name="io.micronaut.http.server" level="TRACE"/>
</configuration>
6 changes: 4 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ plugins {

rootProject.name = 'microstream-parent'

include 'microstream-annotations'
include 'microstream'
include 'microstream-bom'
include 'microstream'
include 'microstream-annotations'
include 'microstream-rest'

include 'test-suite'
include 'test-suite-groovy'
include 'test-suite-kotlin'