-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
690 lines (556 loc) · 33.4 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content=""/>
<meta name="author" content=""/>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js"></script>
<script src="rapidoid.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet">
<link href="docs.css" type="text/css" rel="stylesheet"/>
<link href="rapidoid.min.css" type="text/css" rel="stylesheet"/>
<link href="theme-default.css" type="text/css" rel="stylesheet"/>
<title>Rapidoid - Rapidoid - Extremely Fast, Simple and Powerful Java Web Framework!</title>
<script src="//platform.linkedin.com/in.js" type="text/javascript">lang: en_US</script>
</head>
<body class="rapidoid">
<nav role="navigation" class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button data-target="#collapsable" class="navbar-toggle collapsed" data-toggle="collapse" type="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">Rapidoid</a>
</div>
<div id="collapsable" class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-left">
<li class="active"><a href="/">Home</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Docs<span class="caret"></span></a>
<ul role="menu" class="dropdown-menu">
<li class="active"><a href="docs.html">New documentation (WiP)</a></li>
<li><a href="documentation.html">Old documentation</a></li>
<li><a href="release-notes.html">Release notes</a></li>
</ul>
</li>
<li><a rel="nofollow" href="community.html">Community</a></li>
</ul>
<div class="navbar-brand navbar-right">
<a rel="nofollow" data-count-api="/repos/rapidoid/rapidoid#stargazers_count"
data-count-href="/rapidoid/rapidoid/stargazers" data-icon="octicon-star"
href="https://github.com/rapidoid/rapidoid" class="github-button">Star</a>
<script type="IN/Share" data-url="http://www.rapidoid.org/" data-counter="right"></script>
<a rel="nofollow" href="https://twitter.com/share" rel="nofollow"
class="twitter-share-button navbar-btn" data-url="http://www.rapidoid.org" data-text="#Rapidoid - Extremely Fast, Simple and Powerful #Java #Web Framework!"
data-size="small">Tweet</a>
</div>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-md-12">
<h2 id="main-title">Rapidoid - Extremely Fast, Simple and Powerful Java Web Framework!</h2>
</div>
</div>
<div class="row row-separated-micro">
<div class="col-md-8 col-sm-12">
<p>
<b>
<a rel="nofollow" href="https://github.com/rapidoid/rapidoid">Open source</a> (Apache license).
<a rel="nofollow" href="https://www.techempower.com/benchmarks/#section=data-r12&hw=peak&test=plaintext&a=2">View benchmark...</a>
</b>
</p>
</div>
<div class="col-md-4 col-sm-12">
<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup" class="pull-right">
<form action="http://rapidobest.us3.list-manage.com/subscribe/post?u=c2c27aa25fdef31d9513d6124&id=08cd6ec699"
method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form"
class="validate form-inline" target="_blank" novalidate>
<div class="mc-field-group">
<input type="email" value="" name="EMAIL" class="required email form-control input-sm"
id="mce-EMAIL" placeholder="Your e-mail address"> <input type="submit"
value="Subscribe to newsletter"
name="subscribe"
id="mc-embedded-subscribe"
class="button btn btn-primary btn-sm">
</div>
<div id="mce-responses" class="clear">
<div class="response" id="mce-error-response" style="display: none"></div>
<div class="response" id="mce-success-response" style="display: none"></div>
</div>
<div style="position: absolute; left: -5000px;">
<input type="text" name="b_c2c27aa25fdef31d9513d6124_08cd6ec699" value="">
</div>
<div class="clear"></div>
</form>
</div>
<!--End mc_embed_signup-->
</div>
</div>
<div class="row row-separated-nano">
<div class="col-md-8">
<div class="module-desc">
Rapidoid consists of several modules which can be used separately or together:
<ul>
<li>
<span class="module-name">rapidoid-net</span> - <span class="module-about">Network protocol framework</span>
<span class="pull-right module-about-right"></span>
</li>
<li>
<span class="module-name">rapidoid-http-server</span> (named 'rapidoid-http-fast' before v6) - <span class="module-about">HTTP Server Framework</span>
<span class="pull-right module-about-right"></span>
</li>
<li>
<span class="module-name">rapidoid-rest</span> (named 'rapidoid-http-server' before v6) - <span class="module-about">REST API Framework</span>
<span class="pull-right module-about-right"></span>
</li>
<li>
<span class="module-name">rapidoid-gui</span> - <span class="module-about">Web GUI Components (based on Bootstrap + Angular)</span>
<span class="pull-right module-about-right"></span>
</li>
<li>
<span class="module-name">rapidoid-web</span> - <span class="module-about">rapidoid-rest + rapidoid-gui + goodies</span>
<span class="pull-right module-about-right"></span>
</li>
<li>
<span class="module-name">rapidoid-quick</span> - <span class="module-about">rapidoid-web + Hibernate + Logback + MySQL Connector...</span>
<span class="pull-right module-about-right"></span>
</li>
<li>
<span class="module-name">rapidoid-render</span> - <span class="module-about">Rapidoid's template engine</span>
<span class="pull-right module-about-right"></span>
</li>
</ul>
</div>
</div>
<div class="col-md-4">
<div class="eg_title">Add <b>rapidoid-quick</b> as Maven dependency:</div>
<div class="copy-snippet">
<div class="maven-code">
<<span class="_code_tag">dependency</span>><br>
<<span class="_code_tag">groupId</span>><b>org.rapidoid</b></<span class="_code_tag">groupId</span>><br>
<<span class="_code_tag">artifactId</span>><b>rapidoid-quick</b></<span class="_code_tag">artifactId</span>><br>
<<span class="_code_tag">version</span>><b>5.5.5</b></<span class="_code_tag">version</span>><br>
</<span class="_code_tag">dependency</span>><br>
</div>
</div>
<div id="docker-title"><a href="https://store.docker.com/images/rapidoid/" target="_blank" rel="nofollow">
<b>Official Docker repository for Rapidoid</b></a>:
</div>
<div class="copy-snippet"><code>docker run rapidoid --help</code></div>
</div>
</div>
<div class="row row-separated-nano">
<div class="col-md-12">
<div class="module-header">Getting started with Rapidoid</div>
<p>For a quick start please use the rapidoid-quick module. It includes rapidoid-web, Hibernate, Logback,
Hibernate Validator and MySQL Connector.</p>
</div>
</div>
<div class="row">
<div class="col-md-10">
<!-- EXAMPLE httpsimple -->
<div id="restful-service-one-liner" class="row">
<div class="col-md-12">
<h4 class="caption">
<span class="badge badge-eg-num">1</span>
<a href="restful-service-one-liner.html" class="mini-example-title">RESTful service one-liner</a>
</h4>
</div>
</div>
<div id="examplehttpsimple-extra" class="row">
<div class="col-md-12">
<div class="docs">
<p>
Running this <b>single line of code</b> will start a web server
embedded in your application.
</p>
<p>
By default, the server listens on port <span class="text-box">8888</span>
and address <span class="text-box">0.0.0.0</span> (matching any IP
address).
</p>
<p>
Navigating to <span class="text-box"><a
href="http://localhost:8888/size?msg=abc">http://localhost:8888/size?msg=abc</a></span>
will return <span class="text-box">3</span>.
</p>
</div>
</div>
</div>
<div id="examplehttpsimple-body" class="row">
<div id="examplehttpsimple-left" class="col-md-8">
<!-- START CODE -->
<div class="copy-snippet">
<div><div id="examplehttpsimple-code" class="code-clean"><div class="comment-line clearfix"><span class="_code_comment">// On <span class="text-box">GET /size</span> return the length of the "msg" parameter</span></div>
<div class="example-line clearfix"><span class="_code_cls">On</span>.get(<span class="_code_str">"/size"</span>).json((<span class="_code_cls">String</span> msg) <span class="_code_lambda">-></span> msg.length());</div>
</div></div>
</div>
<!-- END CODE -->
</div>
<div id="examplehttpsimple-right" class="col-md-4">
<div id="examplehttpsimple-results" class="results">
<div>
<span class="badge eg-GET eg-verb">GET</span> <span class="badge eg-uri">/size?msg=abc</span>
</div>
<div class="eg-result">
<!-- EXAMPLE#httpsimple RESULT STARTS HERE -->
3
<!-- EXAMPLE#httpsimple RESULT ENDS HERE -->
</div>
</div>
</div>
</div>
<div id="examplehttpsimple-routes" class="row">
<div class="col-md-12">
<p class="routes-info-caption">HTTP server routes information:</p>
<div class="routes-info">
<table class="table table-condensed">
<tr>
<th>Verb</th>
<th>Path</th>
<th>Zone</th>
<th>Content type</th>
<th>MVC</th>
<th>View name</th>
<th>Roles</th>
</tr>
<tr>
<td>
<span class="label label-success">GET</span>
</td>
<td>/size</td>
<td>main</td>
<td>json</td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="row row-separated-micro">
<div class="col-md-12"></div>
</div>
<!-- EXAMPLE httpsimplegui -->
<div id="instant-web-application" class="row">
<div class="col-md-12">
<h4 class="caption">
<span class="badge badge-eg-num">2</span>
<a href="instant-web-application.html" class="mini-example-title">Instant web application</a>
</h4>
</div>
</div>
<div id="examplehttpsimplegui-body" class="row">
<div id="examplehttpsimplegui-left" class="col-md-12">
<!-- START CODE -->
<div class="copy-snippet">
<div><div id="examplehttpsimplegui-code" class="code-clean"><div class="comment-line clearfix"><span class="_code_comment">// On <span class="text-box">GET /hi</span> or <span class="text-box">POST /hi</span> return a "Hello World" web page</span></div>
<div class="example-line clearfix"><span class="_code_cls">On</span>.page(<span class="_code_str">"/hi"</span>).mvc(<span class="_code_str">"Hello <b>world</b>!"</span>);</div>
</div></div>
</div>
<!-- END CODE -->
<div id="examplehttpsimplegui-codedesc" class="eg_title">config.yml</div>
<!-- START CODE -->
<div class="copy-snippet">
<div><div id="examplehttpsimplegui-code" class="code-clean"><div class="example-line clearfix">gui:</div>
<div class="example-line clearfix"> brand: <span class="_code_str">'Cool app!'</span></div>
<div class="example-line clearfix"> title: <span class="_code_str">'the head title'</span></div>
<div class="example-line clearfix"> search: <span class="_code_kw">true</span></div>
<div class="example-line clearfix"> menu:</div>
<div class="example-line clearfix"> <span class="_code_cls">Home</span>: /</div>
<div class="example-line clearfix"> <span class="_code_cls">Portfolio</span>: /portfolio</div>
<div class="example-line clearfix"> <span class="_code_cls">About</span>:</div>
<div class="example-line clearfix"> <span class="_code_cls">About</span> <span class="_code_cls">Us</span>: /about</div>
<div class="example-line clearfix"> <span class="_code_cls">About</span> <span class="_code_cls">You</span>: /</div>
</div></div>
</div>
<!-- END CODE -->
</div>
</div>
<p class="send-requests-caption">Let's send some HTTP requests and check the results:</p>
<div>
<span class="badge eg-GET eg-verb">GET</span> <span class="badge eg-uri">/hi</span>
</div>
<div class="eg-result">
<!-- EXAMPLE#httpsimplegui RESULT STARTS HERE -->
<!--EMBEDDED-->
<nav role="navigation" class="navbar navbar-default">
<div class="">
<div class="navbar-header">
<button data-target="#collapsable" class="navbar-toggle collapsed" data-toggle="collapse" type="button">
<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">Cool app!</a>
</div>
<div id="collapsable" class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-left">
<li class="">
<a href="/" >Home</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-left">
<li class="">
<a href="/portfolio" >Portfolio</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-left">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">About<span class="caret"></span></a>
<ul role="menu" class="dropdown-menu">
<li><a href="/about">About Us</a></li>
<li><a href="/">About You</a></li>
</ul>
</li>
</ul>
<!-- CREATE A RESOURCE FILE "templates/_navbar.html" TO REPLACE THIS LINE -->
<form action="/search" class="navbar-form navbar-right" method="GET">
<div class="form-group">
<input id="navbar-q" _h="_find" placeholder="Search" name="find" class="form-control" type="text">
</div>
<button class="btn btn-default" type="submit">
<span class="fa fa-search"></span>
</button>
</form>
</div>
</div>
</nav>
Hello <b>world</b>!
<!--/EMBEDDED-->
<!-- EXAMPLE#httpsimplegui RESULT ENDS HERE -->
</div>
<div id="examplehttpsimplegui-routes" class="row">
<div class="col-md-12">
<p class="routes-info-caption">HTTP server routes information:</p>
<div class="routes-info">
<table class="table table-condensed">
<tr>
<th>Verb</th>
<th>Path</th>
<th>Zone</th>
<th>Content type</th>
<th>MVC</th>
<th>View name</th>
<th>Roles</th>
</tr>
<tr>
<td>
<span class="label label-success">GET</span>
<span class="label label-primary">POST</span>
</td>
<td>/hi</td>
<td>main</td>
<td>html</td>
<td>
<i class="fa fa-check"></i>
</td>
<td>hi</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="row row-separated-micro">
<div class="col-md-12"></div>
</div>
<!-- EXAMPLE gettingstarted -->
<div id="restful-services-with-lambda-handlers-jpa-jackson-and-bean-validation" class="row">
<div class="col-md-12">
<h4 class="caption">
<span class="badge badge-eg-num">3</span>
<a href="restful-services-with-lambda-handlers-jpa-jackson-and-bean-validation.html" class="mini-example-title">RESTful services with Lambda handlers, JPA, Jackson and Bean Validation</a>
</h4>
</div>
</div>
<div id="examplegettingstarted-body" class="row">
<div id="examplegettingstarted-left" class="col-md-12">
<div id="examplegettingstarted-codedesc" class="eg_title">Main.java</div>
<!-- START CODE -->
<div class="copy-snippet">
<div><div id="examplegettingstarted-code" class="code-clean"><div class="example-line clearfix"><span class="_code_kw">import</span> org.rapidoid.annotation.<span class="_code_cls">Valid</span>;</div>
<div class="example-line clearfix"><span class="_code_kw">import</span> org.rapidoid.jpa.<span class="_code_cls">JPA</span>;</div>
<div class="example-line clearfix"><span class="_code_kw">import</span> org.rapidoid.setup.<span class="_code_cls">App</span>;</div>
<div class="example-line clearfix"><span class="_code_kw">import</span> org.rapidoid.setup.<span class="_code_cls">On</span>;</div>
<div class="empty-line clearfix"> </div>
<div class="example-line clearfix"><span class="_code_kw">public</span> <span class="_code_kw">class</span> <span class="_code_cls">Main</span> {</div>
<div class="empty-line clearfix"> </div>
<div class="example-line clearfix"> <span class="_code_kw">public</span> <span class="_code_kw">static</span> <span class="_code_kw">void</span> main(<span class="_code_cls">String</span>[] args) {</div>
<div class="example-line clearfix"> <span class="_code_cls">App</span>.bootstrap(args).jpa(); <span class="_code_linecomm">// bootstrap JPA</span></div>
<div class="empty-line clearfix"> </div>
<div class="example-line clearfix"> <span class="_code_cls">On</span>.get(<span class="_code_str">"/books"</span>).json(() <span class="_code_lambda">-></span> <span class="_code_cls">JPA</span>.of(<span class="_code_cls">Book</span>.<span class="_code_kw">class</span>).all()); <span class="_code_linecomm">// get all books</span></div>
<div class="empty-line clearfix"> </div>
<div class="example-line clearfix"> <span class="_code_cls">On</span>.post(<span class="_code_str">"/books"</span>).json((<span class="_code_ann">@Valid</span> <span class="_code_cls">Book</span> b) <span class="_code_lambda">-></span> <span class="_code_cls">JPA</span>.save(b)); <span class="_code_linecomm">// insert new book if valid</span></div>
<div class="example-line clearfix"> }</div>
<div class="empty-line clearfix"> </div>
<div class="example-line clearfix">}</div>
</div></div>
</div>
<!-- END CODE -->
<div id="examplegettingstarted-codedesc" class="eg_title">Book.java</div>
<!-- START CODE -->
<div class="copy-snippet">
<div><div id="examplegettingstarted-code" class="code-clean"><div class="example-line clearfix"><span class="_code_kw">import</span> javax.persistence.<span class="_code_cls">Entity</span>;</div>
<div class="example-line clearfix"><span class="_code_kw">import</span> javax.persistence.<span class="_code_cls">GeneratedValue</span>;</div>
<div class="example-line clearfix"><span class="_code_kw">import</span> javax.persistence.<span class="_code_cls">Id</span>;</div>
<div class="example-line clearfix"><span class="_code_kw">import</span> javax.validation.constraints.<span class="_code_cls">NotNull</span>;</div>
<div class="empty-line clearfix"> </div>
<div class="example-line clearfix"><span class="_code_ann">@Entity</span></div>
<div class="example-line clearfix"><span class="_code_kw">public</span> <span class="_code_kw">class</span> <span class="_code_cls">Book</span> {</div>
<div class="empty-line clearfix"> </div>
<div class="example-line clearfix"> <span class="_code_ann">@Id</span></div>
<div class="example-line clearfix"> <span class="_code_ann">@GeneratedValue</span></div>
<div class="example-line clearfix"> <span class="_code_kw">public</span> <span class="_code_cls">Long</span> id;</div>
<div class="empty-line clearfix"> </div>
<div class="example-line clearfix"> <span class="_code_ann">@NotNull</span></div>
<div class="example-line clearfix"> <span class="_code_kw">public</span> <span class="_code_cls">String</span> title;</div>
<div class="empty-line clearfix"> </div>
<div class="example-line clearfix"> <span class="_code_kw">public</span> <span class="_code_kw">int</span> year;</div>
<div class="empty-line clearfix"> </div>
<div class="example-line clearfix">}</div>
</div></div>
</div>
<!-- END CODE -->
</div>
</div>
<p class="send-requests-caption">Let's send some HTTP requests and check the results:</p>
<div>
<span class="badge eg-POST eg-verb">POST</span> <span class="badge eg-uri">/books</span>
<span class="label label-default eg-data">{"title":"Java Book","year":2016}</span>
</div>
<div class="eg-result">
<!-- EXAMPLE#gettingstarted RESULT STARTS HERE -->
{"id":1,"title":"Java Book","year":2016}
<!-- EXAMPLE#gettingstarted RESULT ENDS HERE -->
</div>
<div>
<span class="badge eg-GET eg-verb">GET</span> <span class="badge eg-uri">/books</span>
</div>
<div class="eg-result">
<!-- EXAMPLE#gettingstarted RESULT STARTS HERE -->
[{"id":1,"title":"Java Book","year":2016}]
<!-- EXAMPLE#gettingstarted RESULT ENDS HERE -->
</div>
<div>
<span class="badge eg-POST eg-verb">POST</span> <span class="badge eg-uri">/books</span>
<span class="label label-default eg-data">{"year":2004}</span>
</div>
<div class="eg-error">
<!-- EXAMPLE#gettingstarted ERROR STARTS HERE -->
<span class="error-result">{"error":"Validation failed: Book.title (may not be null)","code":422,"status":"Unprocessable Entity"}</span>
<!-- EXAMPLE#gettingstarted ERROR ENDS HERE -->
</div>
<div>
<span class="badge eg-GET eg-verb">GET</span> <span class="badge eg-uri">/books</span>
</div>
<div class="eg-result">
<!-- EXAMPLE#gettingstarted RESULT STARTS HERE -->
[{"id":1,"title":"Java Book","year":2016}]
<!-- EXAMPLE#gettingstarted RESULT ENDS HERE -->
</div>
<div id="examplegettingstarted-routes" class="row">
<div class="col-md-12">
<p class="routes-info-caption">HTTP server routes information:</p>
<div class="routes-info">
<table class="table table-condensed">
<tr>
<th>Verb</th>
<th>Path</th>
<th>Zone</th>
<th>Content type</th>
<th>MVC</th>
<th>View name</th>
<th>Roles</th>
</tr>
<tr>
<td>
<span class="label label-success">GET</span>
</td>
<td>/books</td>
<td>main</td>
<td>json</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>
<span class="label label-primary">POST</span>
</td>
<td>/books</td>
<td>main</td>
<td>json</td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="row row-separated-micro">
<div class="col-md-12"></div>
</div>
</div>
<div class="col-md-2">
<div class="toc-right">
<h3 class="toc-title">Contents:</h3>
<div class="toc-wrap">
<a class="toc-link" href="#restful-service-one-liner">RESTful service one-liner</a>
</div>
<div class="toc-wrap">
<a class="toc-link" href="#instant-web-application">Instant web application</a>
</div>
<div class="toc-wrap">
<a class="toc-link" href="#restful-services-with-lambda-handlers-jpa-jackson-and-bean-validation">RESTful services with Lambda handlers, JPA, Jackson and Bean Validation</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="page-footer">
Copyright (C) 2014 - 2018 <a rel="nofollow" href="http://www.nikolche.com">Nikolche Mihajlovski</a> and contributors
</div>
</div>
</div>
</div> <!-- container -->
<script>
$(function () {
Rapidoid.init();
});
</script>
<script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-71483708-1', 'auto');
ga('send', 'pageview');
</script>
<script async defer>
!function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http'
: 'https';
if (!d.getElementById(id)) {
js = d.createElement(s);
js.id = id;
js.src = p + '://platform.twitter.com/widgets.js';
fjs.parentNode.insertBefore(js, fjs);
}
}(document, 'script', 'twitter-wjs');
</script>
</body>
</html>