...
For both approaches you should have Apache Maven installed. Then proceed using Subversion and check out the code from http://scm.dspace.org/svn/repo/modules/dspace-rest/trunk
Wiki Markup |
---|
1) This way assumes you are running DSpace under Tomcat. Locate {{src/main/webapp/WEB-INF/web.xml}} (under directory you just downloaded DSpace REST API). Find variable named {{dspace-config}} and alter it to point to current location of {{dspace.cfg}} file of your DSpace instance. |
Position into the root directory of the REST API and type |
maven package
. If everything goes well, in target
directory will be packaged dspace.war
. Use this file and deploy it to your current Tomcat instance. The application will be available under {{mvn package}}. If everything goes well, in {{target}} directory will be packaged {{dspace-rest-\[version\].war}}. Deploy this file (changing the name to rest.war) to your current Tomcat webapp directory. The application will be available under [http://localhost:8080/rest/|http://localhost:8080/rest/ |
] by default. |
2) You can run REST API under Jetty container. Proceed with the same steps as under #1. Then instead to deploy .war file to Tomcat web server, from the root of REST API source tree issue command mvn jetty:run-war
. This will run REST support under Jetty and the web point will be available at http://localhost:8080/dspace-rest/ by default.
...