-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
150 lines (130 loc) · 4.18 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
---
layout: default
title:
---
<div id="home">
<h1>Introducing RESTX</h1>
<div>the lightweight, modular, feature rich, blazing fast, open source Java REST framework</div>
<div class="row">
<div class="span8">
<h2 id='write_this'>Write this:</h2>
<div class="banner">
<a href="#" class="unslider-arrow prev"><i class="icon-chevron-left"></i></a>
<a href="#" class="unslider-arrow next"><i class="icon-chevron-right"></i></a>
<ul>
<li>
<h4>a simple resource definition</h4>
{% highlight java %}
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")));
}
}
{% endhighlight %}
</li>
<li>
<h4>a RESTX spec</h4>
{% highlight yaml %}
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"}
{% endhighlight %}
</li>
</ul>
</div>
<h2 id='and_get_that'>and get that:</h2>
<div class="banner" data-init='3000'>
<a href="#" class="unslider-arrow prev"><i class="icon-chevron-left"></i></a>
<a href="#" class="unslider-arrow next"><i class="icon-chevron-right"></i></a>
<ul>
<li>
<h4>a server starting blazingly fast</h4>
{% highlight console %}
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/
--
{% endhighlight %}
</li>
<li>
<h4>a working implementation</h4>
{% highlight console %}
[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"
}
{% endhighlight %}
</li>
<li>
<h4>REST API doc with examples…</h4>
<img alt='REST API documentation with RESTX example' src='/images/posts/api-doc-1.png' />
</li>
<li>
<h4>… that you can try easily</h4>
<img alt='trying REST API with RESTX example' src='/images/posts/api-doc-2.png' />
</li>
<li>
<h4>automated integration test </h4>
<img alt='automated integration test with RESTX' src='/images/posts/hello-integration-test.png' />
</li>
<li>
<h4>an admin console with…</h4>
<img alt='monitoring UI with RESTX' src='/images/docs/admin-home.png' />
</li>
<li>
<h4>basic monitoring UI</h4>
<img alt='monitoring UI with RESTX' src='/images/posts/monitoring.png' />
</li>
<li>
<h4>beans graph visualization</h4>
<img alt='monitoring UI with RESTX' src='/images/posts/beans-graph.png' />
</li>
<li>
<h4>and more…</h4>
<h5><a href="/docs/install.html"><i class="icon-terminal"></i> a pluggable self upgrading shell with scaffolding</a></h5>
<h5><a href="/docs/ref-specs.html"><i class="icon-ok"></i> HTTP responses mocking based on spec files</a></h5>
<h5><a href="/docs/ref-factory.html"><i class="icon-cogs"></i> a type safe, blazing fast DI container</a></h5>
<h5><a href="https://github.com/restx/restx/tree/master/restx-jongo"><i class="icon-sitemap"></i> amazing support for MongoDB</a></h5>
<h5><a href="http://github.com/restx/restx"><i class="icon-code"></i> open source</a></h5>
<h5>…</h5>
</li>
</ul>
</div>
</div>
<div class="span4">
<h2>Try it out</h2>
<ul>
<li><a href="/docs/install.html"><i class="icon-download-alt"></i> Install</a></li>
<li><a href="/docs/getting-started.html"><i class="icon-play"></i> Get started</a></li>
<li><a href="/docs/features.html"><i class="icon-tags"></i> Check the features</a></li>
<li><a href="/docs/"><i class="icon-book"></i> Check out the doc</a></li>
<li><a href="/community/"><i class="icon-beer"></i> Join the community</a></li>
</ul>
<h2>News</h2>
<ul class="posts">
{% for post in site.categories.news %}
<li><time>{{ post.date | date_to_string }}</time> <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</div>
</div>
</div>