de.androbit:nibbler-json

nibbler http micro-service library

License

License

Categories

Categories

JSON Data
GroupId

GroupId

de.androbit
ArtifactId

ArtifactId

nibbler-json
Last Version

Last Version

0.4
Release Date

Release Date

Type

Type

jar
Description

Description

nibbler http micro-service library

Download nibbler-json

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
de.androbit : nibbler-core jar 0.4
org.slf4j : slf4j-api jar 1.7.7

provided (1)

Group / Artifact Type Version
com.fasterxml.jackson.core : jackson-databind jar 2.4.3

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

There are no modules declared in this project.

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