Olingo has prepared a very simple sample car service that can work as a starting point for implementing a custom OData service. This service consists of a very simple EDM with two entity sets that are cars and manufactures and a memory based data provider that is a simple hash map. Therefore the project implements a very basic single OData processor supporting a minimal readonly scenario.
This sample can be deployed to any JEE compliant web application server (e.g. Tomcat) and be used to get an overview on how to provide an OData V4 compliant webserver.
To run this sample you will need to perfom the following steps:
You can now explore the service.
To get the war file via the maven repository you can simple look here and download the war file.
You can also build the war file yourself using maven. To do this please set up your project by cloning our git repository. You can find a how to here
After you have executed the maven goals "clean install" you can find the war file in the target folder under "olingo-odata4/samples/server/target".
If you would like to debug the service you can do so by integrating the whole project into eclipse by following this tutorial.
Copyright © 2013-2015, The Apache Software Foundation
Apache Olingo, Olingo, Apache, the Apache feather, and the Apache Olingo project logo are trademarks of the Apache Software Foundation.