de.androbit:nibbler-extensions

nibbler http micro-service library

Лицензия

Лицензия

Группа

Группа

de.androbit
Идентификатор

Идентификатор

nibbler-extensions
Последняя версия

Последняя версия

0.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

nibbler http micro-service library

Скачать nibbler-extensions

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/de.androbit/nibbler-extensions/ -->
<dependency>
    <groupId>de.androbit</groupId>
    <artifactId>nibbler-extensions</artifactId>
    <version>0.4</version>
</dependency>
// https://jarcasting.com/artifacts/de.androbit/nibbler-extensions/
implementation 'de.androbit:nibbler-extensions:0.4'
// https://jarcasting.com/artifacts/de.androbit/nibbler-extensions/
implementation ("de.androbit:nibbler-extensions:0.4")
'de.androbit:nibbler-extensions:jar:0.4'
<dependency org="de.androbit" name="nibbler-extensions" rev="0.4">
  <artifact name="nibbler-extensions" type="jar" />
</dependency>
@Grapes(
@Grab(group='de.androbit', module='nibbler-extensions', version='0.4')
)
libraryDependencies += "de.androbit" % "nibbler-extensions" % "0.4"
[de.androbit/nibbler-extensions "0.4"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
de.androbit : nibbler-core jar 0.4
org.apache.tika : tika-core jar 1.6
org.slf4j : slf4j-api jar 1.7.7

test (5)

Идентификатор библиотеки Тип Версия
org.slf4j : slf4j-simple jar 1.7.7
junit : junit jar 4.11
org.assertj : assertj-core jar 1.7.0
org.mockito : mockito-all jar 1.10.8
com.jayway.restassured : rest-assured jar 2.4.0

Модули Проекта

Данный проект не имеет модулей.

nibbler

nibbler

nibbler is a HTTP micro-service DSL + library for Java 8 or higher based on RxNetty, the RxJava adapter for Netty developed by Netflix.

Download

The current version is available in the maven central repository

Hello World

import de.androbit.nibbler.RestHttpServerConfiguration;
import de.androbit.nibbler.RestServiceBuilder;
import de.androbit.nibbler.json.JacksonConverter;
import de.androbit.nibbler.netty.NettyHttpServer;

import static de.androbit.nibbler.json.JsonSupport.json;

public class JsonExample extends RestServiceBuilder {
  @Override
  public void define() {
    path("/json").get((request, response) -> {
      return response.with(json("Hello World!"));
    });
  }

  public static void main(String[] args) {
    RestHttpServerConfiguration restHttpServerConfiguration = new RestHttpServerConfiguration()
      .withService(new JsonExample())
      .withConverter(new JacksonConverter());

    new NettyHttpServer()
      .startAndWait(restHttpServerConfiguration);
  }
}

Documentation

Check Read The Docs for examples and documentation.

Versioning

Starting with version 1.0.0, nibbler will follow semantic versioning. During the 0.x releases, the minor (.x) releases may include breaking changes.

License

nibbler is published under the terms of the Apache 2.0 License. See the LICENSE file.

Версии библиотеки

Версия
0.4
0.3