Skip to content

Commit

Permalink
Changed README to use Markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs6f committed Jan 25, 2013
1 parent c8e08e1 commit f1492cd
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 14 deletions.
14 changes: 0 additions & 14 deletions README

This file was deleted.

31 changes: 31 additions & 0 deletions README.md
@@ -0,0 +1,31 @@
###Fedora tries its luck with Lily.


####Configuration:

You must have a running Lily repository to run this. Lily is not embedded!

Lily should be available at Zookeeper address "localhost:2181", or you can change the Spring config in WEB-INF/rest.xml.

####Adding resources:

The only methods currently implemented are half-assed POST/GET for /objects/{dsid} and quarter-assed GET for /fedora/describe.

To add a new JAXRS resource, create it as a subclass of AbstractResource, then add it to the Spring config in WEB-INF/rest.xml, like:

<jaxrs:serviceBeans>
<bean id="fedoraRepository" class="org.fcrepo.lily.FedoraRepository"/>
...
</jaxrs:serviceBeans>

In your JAXRS resource, you can use getRepo() to acquire the Lily Repository object. See Lily documentation for what you can do with that.

####Schema:

To change the schema in use, modify src/main/resources/org/fcrepo/lily/fedoraSchema.json.

This schema file is in Lily format, as documented here:

http://docs.ngdata.com/lily-docs-trunk/g2/435-lily.html

It is not currently configured to load any sample records, but could be altered to do so.

0 comments on commit f1492cd

Please sign in to comment.