This chapter details configuration APIs for external systems used in OHPM. These are REST based services and are authenticated using BASIC authentication. Admin user (having pm_admin_group role) can use these services for configuration.
It includes the following topics:
All API invocations with base path as /ohpm/opmconfigapi/ should have header value X-Requested-By set with the value OPM. For more information on configuring a sample REST client to access the OHPM API REST based services, see Article ID 2148026.1 on My Oracle Support.
REST API's to manage genome version details required by the Dalliance genome browser. DAS server details are required for configuring Dalliance.
PATH | <server url>//ohpm/opmconfigapi/v1.0/config/dalliance |
ACCEPTS | application/json |
RETURNS | application/json |
GET - Genome configurations
PARAMETER | DESCRIPTION | PARAMETER TYPE | DATA TYPE/ REPRESENTATION |
---|---|---|---|
HTTP Status: 200 (success)
Body: Example
{ "name":"HG19", "authority":"GRCh", "version":"38", "sequenceTrackUrl":"<URL>", "genesTrackUrl":"<URL>", "dnaVersion": "V68" }, { "name":"HG18", "authority":"NCBI", "version":"37", "sequenceTrackUrl":"<URL>", "genesTrackUrl":"<URL>", "dnaVersion": "V68" }
POST - Add a genome configuration. You will have to provide DAS server URLs that are used in Dalliance to plot variant details.
PARAMETER | DESCRIPTION | PARAMETER TYPE | DATA TYPE/ REPRESENTATION |
---|---|---|---|
body | body |
{ "name":"<UCSC_NAME>", "authority":"<authority_name>", "version":"<version_number>", "sequenceTrackUrl":"<DAS server sequence track URL>", "genesTrackUrl":"<DAS server sequence track URL>" "dnaVersion": "<DNA Reference Build Version>" } |
Code | Reason | Representation |
---|---|---|
200 | success |
{ "success": "true" } |
PATH | <server url>/ohpm/opmconfigapi/v1.0/config/dalliance/{genomeVersion} |
ACCEPTS | application/json |
RETURNS | application/json |
GET - Configuration for a genome version
PARAMETER | DESCRIPTION | PARAMETER TYPE | DATA TYPE/ REPRESENTATION |
---|---|---|---|
genomeVersion | Genome version | path | String |
Code | Reason | Representation (Example) |
---|---|---|
200 | success |
{ "name":"HG19", "authority":"GRCh", "version":"38", "sequenceTrackUrl":"<URL>", "genesTrackUrl":"<URL>" "dnaVersion": "V68" } |
PUT - Update an existing genome configuration
PARAMETER | DESCRIPTION | PARAMETER TYPE | DATA TYPE/ REPRESENTATION |
---|---|---|---|
genomeVersion | Genome version | path | string |
body | body |
{ "name":"<UCSC_NAME>", "authority":"<authority_name>", "version":"<version_number>", "sequenceTrackUrl":"<URL>", "genesTrackUrl":"<URL>" "dnaVersion": "<DNA Reference Build Version>" } |
Code | Reason | Representation |
---|---|---|
200 | success |
{ "success": "true" } |
The following REST APIs have been provided to manage configurations for invoking N-of-One genomic interpretation APIs. Enable N-of-One related features after configuring N-of-One details. For details, see Section 2.3, "Enabling or Disabling Features Related to External Systems".
PATH | <server url>/ohpm/opmconfigapi/v1.0/config/credential/nof1 |
ACCEPTS | application/json |
RETURNS | application/json |
GET - User credential for N-of-One
PARAMETER | DESCRIPTION | PARAMETER TYPE | DATA TYPE/ REPRESENTATION |
---|---|---|---|
Code | Reason | Representation |
---|---|---|
200 | success |
{ "id":"1002", "credentialType":"ORG", "authorizationToken": null "productKey":"<productKey>", "customerId":"<customerId>" } |
authorizationToken is not loaded in GET.
POST - Add credential details for invoking N-of-One
PARAMETER | DESCRIPTION | PARAMETER TYPE | DATA TYPE/ REPRESENTATION |
---|---|---|---|
body | body |
{ "authorizationToken": "<AUTH TOKEN>", "productKey":"<productKey>", "customerId":"<customerId>" } |
Code | Reason | Representation |
---|---|---|
200 | success |
{ "id":"1231", "credentialType":"ORG", "authorizationToken": "<AUTH TOKEN>" "productKey":"<productKey>", "customerId":"<customerId>" } |
PUT - Update credential details for N-of-One
PARAMETER | DESCRIPTION | PARAMETER TYPE | DATA TYPE/ REPRESENTATION |
---|---|---|---|
body | body |
{ "authorizationToken": "<AUTH TOKEN>", "productKey":"<productKey>", "customerId":"<customerId>" } |
Code | Reason | Representation |
---|---|---|
200 | success |
{ "authorizationToken": "<AUTH TOKEN>" "productKey":"<productKey>", "customerId":"<customerId>" } |
PATH | <server url>/ohpm/opmconfigapi/v1.0/config/externalFeaturesState |
ACCEPTS | application/json |
RETURNS | application/json |
GET - Returns current features state
PARAMETER | DESCRIPTION | PARAMETER TYPE | DATA TYPE/ REPRESENTATION |
---|---|---|---|
Code | Reason | Representation |
---|---|---|
200 | success |
{ "dalliance":false, "clinvar":true, "nof1":false, "emr":false } |
PUT - Enable or disable features in OHPM
PARAMETER | DESCRIPTION | PARAMETER TYPE | DATA TYPE/ REPRESENTATION |
---|---|---|---|
body | body |
{ "dalliance":false, "clinvar":true, "nof1":false, "emr":true } |
Code | Reason | Representation |
---|---|---|
200 | success |
{ "success": "true" } |