Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Installing in DSpace 6

This feature code is scheduled to be a part of the DSpace 6 code base.

See https://github.com/DSpace/DSpace/pull/1086

Disabling the REST Reports

...

Code Block
titleConfigure Authorization for REST Reports
# Enable/disable authorization for the reporting tools.
# By default, the DSpace REST API will only return communities/collections/items that are accessible to a particular user.
# If the REST API has been deployed in a protected manner, the reporting tools can be configured to bypass authorization checks.
# This will allow all items/collections/communities to be returned to the report user.
# Set the rest-reporting-authenticate option to false to bypass authorization
rest-.reporting-authenticate = false

...

Code Block
# Configure the report pages that can be requested by name
# Create a map of named reports that are available to a report tool user
# Each map entry should be prefixed with rest-report-url 
#   The map key is a name for a report
#   The map value is a URL to a report page
# A list of available reports will be available with the call /rest/reports.
# If a request is sent to /rest/reports/[report key], the request will be re-directed to the specified URL
# 
# This project currently contains 2 sample reports.  Eventually, additional reports could be introduced through this mechanism.
rest-.report-url.collections = /rest/static/index.html
rest-.report-url.item-query = /rest/static/query.html

...

Code Block
# The REST Report Tools may pass a regular expression test to the database.  
# The following configuration setting will construct a SQL regular expression test appropriate to your database engine
rest-.regex-clause = text_value ~ ?

...