restler

Restler is a library that generates a client of a web service by its annotated Spring controller interface at runtime.

Лицензия

Лицензия

Группа

Группа

org.restler
Идентификатор

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

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

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

0.5.1
Дата

Дата

Тип

Тип

pom
Описание

Описание

restler
Restler is a library that generates a client of a web service by its annotated Spring controller interface at runtime.
Система контроля версий

Система контроля версий

https://github.com/excelsior-oss/restler

Скачать restler

Имя Файла Размер
restler-0.5.1.pom 9 KB
Обзор

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

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

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
cglib : cglib-nodep jar 3.1
org.objenesis : objenesis jar 2.1
org.slf4j : slf4j-api jar 1.7.5

test (3)

Идентификатор библиотеки Тип Версия
org.codehaus.groovy.maven.runtime : gmaven-runtime-api jar 1.0
org.codehaus.groovy : groovy-all jar 2.4.3
org.spockframework : spock-core jar 1.0-groovy-2.4

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

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

Build Status Maven Central

Restler

Overview

Restler is a library that automatically generates a client for a web service at run time, by analyzing the respective annotated Spring controller interface. Restler may help you remove HTTP-specific boilerplate from your integration tests, microservices and thirdparty HTTP API clients.

EPA warning: Restler currently is in early public access stage and it is neither feature complete, tested in production or backward compatible

Features

  • Easily extensible architecture
  • Custom authentication, authorization and errors mapping strategies
  • Support of form-based, http basic, cookie-based and generic header-based authentication
  • Support of async controllers through methods returning Future, DefferedResult or Callable objects
  • Experemental Spring Data REST support

Simple Usage Example

Suppose you have the following interface on the server:

/** 
  * An annotated Spring controller interface
  */
@Controller
@RequestMapping("greeter")
public interface Greeter {

	@RequestMapping("greetings/{language}")	
	String getGreeting(@PathVariable String language, @RequestParam(defaultValue = "Anonymous") String name); 

}

Then in your client you can invoke the getGreeting method of the remote service using the following code snippet:

Service service = new Restler("https://www.example.com/api", new SpringMvcSupport()).build();
Greeter greeter = service.produceClient(Greeter.class);
String greeting = greeter.getGreeting("en","Buddy"); // the result of https://www.example.com/api/greeter/greetings/en?name=Buddy call
org.restler

Excelsior LLC

We make Excelsior JET, a compliant Java SE JVM with AOT compiler. These are our open source projects.

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

Версия
0.5.1
0.5.0
0.4.2
0.4.1
0.4.0
0.3.1
0.3.0
0.2.0
0.1.1
0.1.0