Installing the REST API

The REST API deploys as a standard webapp for your servlet container / tomcat. For example, depending on how you deploy webapps, one way would be to alter tomcat-home/conf/server.xml and add:

<Context path="/rest" docBase="/dspace/webapps/rest" />

In DSpace 4, the initial/official Jersey-based REST API was added to DSpace. The DSpace 4 REST API provides READ-ONLY access to DSpace Objects.

In DSpace 5, the REST API adds authentication, allows Creation, Update, and Delete to objects, can access restricted materials if authorized, and it requires SSL.

Disabling SSL

For localhost development purposes, SSL can add additional getting-started difficulty, so security can be disabled. To disable DSpace REST's requirement to require security/ssl, alter [dspace]/webapps/rest/WEB-INF/web.xml or [dspace-source]/dspace-rest/src/main/webapp/WEB-INF/web.xml and comment out the <security-constraint> block, and restart your servlet container. Production usages of the REST API should use SSL, as authentication credentials should not go over the internet unencrypted.

FAQ Category
DSpace
Summary
.confluence-information-macro-body { font-size:12px} ; .c { visibility:hidden; } .codeContent.panelContent.pdl { font-size: 12px; font-style: italic; } Installing the REST APIThe REST API deploys as a standard webapp for your servlet container / tomcat. For example, depending on how you deploy webapps, one way would be to alter tomcat-home/conf/server.xml and add: Context path=&quot;/rest&quot; docBase=&quot;/dspace/webapps/rest&quot; / In DSpace 4, the initial/official Jersey-based REST API was added to DSpace. The DSpace REST API provides READ-ONLY access to DSpace Objects.In DSpace 5, the REST API adds authentication, allows Creation, Update, and Delete to objects, can ...