The Reactome Nursa service provides the following REST end points:
-
search - Searches for a term in the dataset DOI, name and description
-
dataset - Fetches dataset content
-
Clone this Git repository.
-
Install Maven.
-
Install and configure Solr as described in the Reactome search-indexer repository.
-
Obtain a Nursa API key from nursa.org.
-
Define
$HOME/.m2/settings.xmlMaven profiles that set the access authorization properties 1, e.g.:<profile> <id>solr</id> <properties> <!-- Solr authorization --> <solr.user>solr</solr.user> <solr.password>my-solr-password</solr.password> </properties> </profile> <profile> <id>nursa</id> <properties> <!-- The Nursa Solr core host name. --> <solr.host>http://localhost:8983/solr/nursa</solr.host> <!-- The Nursa REST API access key. --> <nursa.api.key>my-api-key</nursa.api.key> </properties> </profile> -
Build the
.warfile:mvn clean package -U -P solr,nursa -
Copy the
.warfile to tomcat:cp target/Nursa.war $TOMCAT_HOME/webappswhere
$TOMCAT_HOMEis the tomcat deployment location. -
The REST service can then be called by the Nursa Reactome Portal.
-
Alternatively, the Nursa Reactome REST service can be started locally in an embedded server with the Maven
tomcat7:rungoal:mvn tomcat7:run
1
The solr profile can be pulled from the Reactome profile
defined for data-content
and reused to build that project as well.
↩