README.md 1.71 KB
Newer Older
1
2
3
Repository FITS Service
===================================

acoburn's avatar
acoburn committed
4
This service will return the FITS information associated with an LDP NonRDFSource, in
5
6
XML format.  The service can be used with any Camel route in an OSGi container.

acoburn's avatar
acoburn committed
7
8
9
10
The service is invoked like so:

    curl http://localhost:9601/fits?context=http://localhost:8080/fcrepo/rest/image

Aaron Coburn's avatar
Aaron Coburn committed
11
The appropriate LDP resource is identified with either the `context` query option
acoburn's avatar
acoburn committed
12
13
or the `Apix-Ldp-Resource-Path` header.

14
15
16
17
18
Building
--------

To build this project use

19
    gradle install
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

Deploying in OSGi
-----------------

Each of these projects can be deployed in an OSGi container. For example using
[Apache Karaf](http://karaf.apache.org) version 4.x or better, you can run the following
command from its shell:

    feature:repo-add mvn:edu.amherst.acdc/acrepo-karaf/LATEST/xml/features
    feature:install acrepo-exts-fits


Configuration
-------------
The application can be configured by creating the following configuration
acoburn's avatar
acoburn committed
35
file `KARAF_HOME/etc/edu.amherst.acdc.exts.fits.cfg`. The following values
36
37
are available for configuration:

Aaron Coburn's avatar
Aaron Coburn committed
38
The base URL of the LDP server and any authentication parameters
39

acoburn's avatar
acoburn committed
40
    fcrepo.baseUrl=http://localhost:8080/fcrepo/rest
41
42
43
    fcrepo.authHost=
    fcrepo.authUsername=
    fcrepo.password=
44
45
46

The prefix for the service

47
    rest.prefix=/fits
48
49
50

The port on which the service is made available

51
    rest.port=9601
52
53
54

The hostname on which the service is available

55
    rest.host=localhost
56
57
58

The endpoint on which the FITS server is located

acoburn's avatar
acoburn committed
59
    fits.endpoint=http://localhost:8080/fits
60
61
62
63
64

By editing this file, any currently running routes will be immediately redeployed
with the new values.

For more help see the [Apache Camel](http://camel.apache.org) documentation