REST+JSON框架 Rest.li
- 授权协议: Apache
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: https://github.com/linkedin/rest.li
- 软件文档: https://github.com/linkedin/rest.li/wiki
软件介绍
Rest.li 是来自 Linkedin 的一款REST+JSON框架,使用动态发现和简单的异步API即可构建健壮可伸缩的服务架构体系。该框架已在LinkedIn得到运用与发展,日趋成熟,满足自身不断发展的需求。
服务端示例:
@RestLiCollection(name = "greetings")
class GreetingsResource extends CollectionResourceTemplate<Long, Greeting> {
public Greeting get(Long key) {
return new Greeting().setMessage("Good morning!");
}
}客户端示例:
Response<Greeting> response = restClient.sendRequest(new GreetingsBuilders.get().id(1L).build()).get(); System.out.println(response.getEntity().getMessage());
Looking For a Challenge
the University of Warsaw / the University of Warsaw / 2012-11 / 0
LOOKING FOR PROGRAMMING CHALLENGES? Then this book is for you! Whether it's the feeling of great satisfaction from solving a complex problem set, or the frustration of being unable to solve a task,......一起来看看 《Looking For a Challenge》 这本书的介绍吧!
