OSGi enRoute REST Examples
This project demonstrates the use of the OSGi enRoute REST API. This API allows you to write POJO code that is mapped to REST with JSON as payload. The project shows in the RestApplication class a number of examples that manipulate a history. All the examples are turned into a web page that allows you to execute them easily with a mouse click.
How To Start
Check out this repository and load all projects in bndtools. (Do the Quickstart Tutorial for using enRoute workspaces.) Then in the
osgi.enroute.examples.rest.application, select the
debug.bndrun by double clicking it. After resolving it, click on the Debug button. This will start a web server on
http://localhost:8080. Select the link. This shows a page with an entry for each example. You can click on the example, the result will then be displayed just below it.