Old Release

This documentation covers an old version of Fedora. Looking for another version? See all documentation.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This document will walk you through getting the code, building the webapp, and exercising the REST API. 

Prerequisites

Fedora 4 requires Java 7 and Maven 3 (only for building the project). Check that you have them installed before proceeding:


Building Fedora 4

You can Downloads and Deploying Fedora 4 Complete Guide. or pre-packaged Jetty instances, or build Fedora 4 from source (it's not difficult or too time consuming).

Clone the latest code from Github:


And build the project (the first time you build Fedora 4 may take some time and bandwidth to download all the development dependencies):


Running the Fedora 4 webapp

The webapp can be run from a bundled instance of jetty. The application will listen on port 8080 by default.
If you would like to run the webapp on a different port, you can add the "jetty.port" option in your maven command (e.g. mvn -Djetty.port=8181 jetty:run)


There's a nice, friendly HTML interface waiting for you at http://localhost:8080/rest/ 

REST API Examples

The RESTful HTTP API provides a full listing of the features and functions of the REST API. Here are some examples to get you started:


The REST API supports a variety of RDF serialization formats, including:


or


Create a new object


Delete an object


 

 

  • No labels