summaryrefslogtreecommitdiffstats
path: root/platform-logic/restapi-templates
diff options
context:
space:
mode:
authorHariharan <rh20085046@wipro.com>2021-09-02 20:53:04 +0530
committerHariharan <rh20085046@wipro.com>2021-09-02 20:53:04 +0530
commit2ac04266ced42d7c125be8b4b7010cabb0ba4ed1 (patch)
tree4552276480fe4cdcf9e75ca71dce4c82ee26ed3f /platform-logic/restapi-templates
parent1051b5b08b28365742364563f9c1dcdd85bf8bb2 (diff)
A1 interface Support instead of O1.
Issue-ID: CCSDK-3436 Signed-off-by: Hariharan <rh20085046@wipro.com> Change-Id: Icd76056cb3695567f547c1ca5e9958173f3ed7df
Diffstat (limited to 'platform-logic/restapi-templates')
-rw-r--r--platform-logic/restapi-templates/src/main/json/A1policyinstance.json29
-rw-r--r--platform-logic/restapi-templates/src/main/json/A1policytype.json29
2 files changed, 58 insertions, 0 deletions
diff --git a/platform-logic/restapi-templates/src/main/json/A1policyinstance.json b/platform-logic/restapi-templates/src/main/json/A1policyinstance.json
new file mode 100644
index 00000000..767bed72
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/A1policyinstance.json
@@ -0,0 +1,29 @@
+{
+ "body":{
+ "input":{
+ "CommonHeader":{
+ "TimeStamp":"2018-11-30T09:13:37.368Z",
+ "APIver":"1.0",
+ "RequestID":"982ee65a-8afd-48df-bf57-c152ae45bacc-1",
+ "SubRequestID":"1",
+ "RequestTrack":{
+
+ },
+ "Flags":{
+
+ }
+ },
+ "Action":"putA1Policy",
+ "Payload":{
+ "input":{
+ "near-rt-ric-url":"${"tmp.policyinstance.url}${"tmp.payload.sNSSAI}${"tmp.nearRTRICId}",
+ "body":'{"scope":{"snssai":${tmp.payload.sNSSAI}},"dLThptPerSlice":${"tmp.dLThptPerSlice},"uLThptPerSlice":${"tmp.uLThptPerSlice},"slice_priority":2}'
+ }
+ }
+ }
+ },
+ "version":"1.0",
+ "rpc-name":"putA1Policy",
+ "correlation-id":"722ee65a-8afd-48df-bf57-c152ae45bacc-1",
+ "type":"request"
+} \ No newline at end of file
diff --git a/platform-logic/restapi-templates/src/main/json/A1policytype.json b/platform-logic/restapi-templates/src/main/json/A1policytype.json
new file mode 100644
index 00000000..69d4f502
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/A1policytype.json
@@ -0,0 +1,29 @@
+{
+ "body":{
+ "input":{
+ "CommonHeader":{
+ "TimeStamp":"2018-11-30T09:13:37.368Z",
+ "APIver":"1.0",
+ "RequestID":"982ee65a-8afd-48df-bf57-c152ae45bacc-1",
+ "SubRequestID":"1",
+ "RequestTrack":{
+
+ },
+ "Flags":{
+
+ }
+ },
+ "Action":"putA1Policy",
+ "Payload":{
+ "input":{
+ "near-rt-ric-url":"${"tmp.policytype.url}/${"prop.a1.policytype.id}",
+ "body":"{\"name\":\"Slice_throughput_policy\",\"description\":\"Policy to administer overall throughput for a specific slice\",\"policy_type_id\":${"prop.a1.policytype.id},\"create_schema\":{\"$schema\":\"http:\/\/json-schema.org\/draft-07\/schema#\",\"type\":\"object\",\"properties\":{\"scope\":{\"type\":\"object\",\"properties\":{\"snssai\":{\"type\":\"string\"}},\"additionalProperties\":false,\"required\":[\"snssai\"]},\"dLThptPerSlice\":{\"type\":\"number\",\"description\":\"dLThptPerSlice throughput for the near rt ric\"},\"uLThptPerSlice\":{\"type\":\"number\",\"description\":\"uLThptPerSlice throughput for the near rt ric\"},\"slice_priority\":{\"type\":\"number\",\"description\":\"Slice priority\"}},\"additionalProperties\":false}}"
+ }
+ }
+ }
+ },
+ "version":"1.0",
+ "rpc-name":"putA1Policy",
+ "correlation-id":"722ee65a-8afd-48df-bf57-c152ae45bacc-1",
+ "type":"request"
+} \ No newline at end of file