Introducing RESTX
the lightweight, modular, feature rich, blazing fast, open source Java REST framework
Write this:
-
a simple resource definition
import myapp.domain.Message; @Component @RestxResource public class HelloResource { @GET("/message") public Message sayHello(String who) { return new Message().setMessage(String.format( "hello %s, it's %s", who, DateTime.now().toString("HH:mm:ss"))); } }
-
a RESTX spec
title: should say hello given: - time: 2013-03-31T14:33:18.272+02:00 wts: - when: GET message?who=xavier then: | {"message":"hello xavier, it's 14:33:18"}
and get that:
-
a server starting blazingly fast
22:22:33.015 [main] INFO starting web server 22:22:33.605 [main] INFO restx.RestxMainRouterFactory - -------------------------------------- -- RESTX READY -- 2 filters -- 15 routes -- for admin console, -- VISIT http://localhost:8086/api/@/ui/ --
-
a working implementation
[restx] http "http://localhost:8086/api/message?who=xavier" HTTP/1.1 200 OK Cache-Control: no-cache Connection: keep-alive Content-Type: application/json; charset=UTF-8 Transfer-Encoding: chunked { "message": "hello xavier, it's 22:25:00" }
-
REST API doc with examples…
-
… that you can try easily
-
automated integration test
-
an admin console with…
-
basic monitoring UI
-
beans graph visualization
-
and more…
…