nibbler root pom

nibbler http micro-service library

License

License

GroupId

GroupId

de.androbit
ArtifactId

ArtifactId

nibbler
Last Version

Last Version

0.4
Release Date

Release Date

Type

Type

pom
Description

Description

nibbler root pom
nibbler http micro-service library
Project URL

Project URL

http://github.com/adrobisch/nibbler
Source Code Management

Source Code Management

http://github.com/adrobisch/nibbler

Download nibbler

Filename Size
nibbler-0.4.pom 6 KB
Browse

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.7

test (5)

Group / Artifact Type Version
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

Project Modules

  • core
  • json
  • netty
  • extensions
  • examples
  • tests

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.

Versions

Version
0.4
0.3
0.2
0.1