Go to primary content
Oracle® Communications Unified Data Repository Cloud Native User's Guide
Release 1.0
F16987-01
Go To Table Of Contents
Contents

Previous
Previous
Next
Next

Supporting New URI in User Data Repository

To support a new request or an operation for any existing or newly created data table, user requires an appropriate entry in RESOURCE_MAP table. User Data Repository application supports only those requests or an operations mentioned in RESOURCE_MAP table.

Following is sample command to put an entry in RESOURCE_MAP table.

Pre-requisite: Login to the NDB Cluster's SQL node with configured username and password.

INSERT INTO RESOURCE_MAP VALUES ('API_NAME', 'API_VERSION',
'BASE_RESOURCE_NAME', 'URI_PATTERN', 'DATA_TABLE_NAME',
'DATA_COLUMN_NAME', 'SUPPORTED_OPERATIONS','JSON_SCHEMA');

Example:

 INSERT INTO RESOURCE_MAP VALUES ('nudr-dr2', 'v1',
'policy-data2', 'ues/{ueId}/am-data2', 'PCF_DATA2', 'AM_DATA2',
'GET,PUT,POST,DELETE,PATCH','{"definitions": {},"$schema": "http://json-schema.org/draft-07/schema#","type":
"object","properties": {"subscCats": {"type": "array","items":
{"type": "string"}}},"additionalProperties": false}');