Set all cross references of policy/pap
[policy/pap.git] / postman / pap-api-collection.json
index 34112b7..cdc38f5 100644 (file)
@@ -1,8 +1,8 @@
 {
     "info": {
-        "_postman_id": "05831254-6fad-419f-b10e-ff21cbbd365a",
+        "_postman_id": "cf7db76a-e5a7-4c92-a3b7-7b97ffd006bf",
         "name": "Policy Framework Administration API",
-        "description": "This collection lists all the Administration API's supported by ONAP Policy Framework. These API's are used to perform administrative operations for managing policies, groups, statistics & health information for all registered PDP engines.",
+        "description": "This collection lists all the Administration API's supported by ONAP Policy Framework. These API's are used to perform administrative operations for managing policies, groups & health information for all registered PDP engines.",
         "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
     },
     "item": [
             "response": []
         },
         {
-            "name": "Fetch Policy deployment Status",
+            "name": "Fetch All Policy Status",
             "protocolProfileBehavior": {
                 "disableBodyPruning": true
             },
                     "raw": ""
                 },
                 "url": {
-                    "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/deployed/operational.modifyconfig",
+                    "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/status",
                     "host": [
                         "{{POLICY-PAP-URL}}"
                     ],
                         "pap",
                         "v1",
                         "policies",
-                        "deployed",
+                        "status"
+                    ]
+                },
+                "description": "This is a generic API to fetch status of all policies in the registered PDP instances."
+            },
+            "response": []
+        },
+        {
+            "name": "Fetch All Policy Status in a Group",
+            "protocolProfileBehavior": {
+                "disableBodyPruning": true
+            },
+            "request": {
+                "method": "GET",
+                "header": [
+                    {
+                        "key": "Content-Type",
+                        "type": "text",
+                        "value": "application/json"
+                    },
+                    {
+                        "key": "Accept",
+                        "type": "text",
+                        "value": "application/json"
+                    }
+                ],
+                "body": {
+                    "mode": "raw",
+                    "raw": ""
+                },
+                "url": {
+                    "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/status/defaultGroup",
+                    "host": [
+                        "{{POLICY-PAP-URL}}"
+                    ],
+                    "path": [
+                        "policy",
+                        "pap",
+                        "v1",
+                        "policies",
+                        "status",
+                        "defaultGroup"
+                    ]
+                },
+                "description": "This is a generic API to fetch status of all policies in the registered PDP instances in a PDP Group."
+            },
+            "response": []
+        },
+        {
+            "name": "Fetch Policy Status in a Group",
+            "protocolProfileBehavior": {
+                "disableBodyPruning": true
+            },
+            "request": {
+                "method": "GET",
+                "header": [
+                    {
+                        "key": "Content-Type",
+                        "type": "text",
+                        "value": "application/json"
+                    },
+                    {
+                        "key": "Accept",
+                        "type": "text",
+                        "value": "application/json"
+                    }
+                ],
+                "body": {
+                    "mode": "raw",
+                    "raw": ""
+                },
+                "url": {
+                    "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/status/defaultGroup/operational.modifyconfig",
+                    "host": [
+                        "{{POLICY-PAP-URL}}"
+                    ],
+                    "path": [
+                        "policy",
+                        "pap",
+                        "v1",
+                        "policies",
+                        "status",
+                        "defaultGroup",
                         "operational.modifyconfig"
                     ]
                 },
-                "description": "This is an API to fetch status of a specific deployed policy in the registered PDP instances."
+                "description": "This is a generic API to fetch status of all versions of a policy in the registered PDP instances in a PDP Group."
             },
             "response": []
         },
             "response": []
         },
         {
-            "name": "Fetch All PDPs Statistics",
+            "name": "Fetch Policy deployment Status",
             "protocolProfileBehavior": {
                 "disableBodyPruning": true
             },
                 "header": [
                     {
                         "key": "Content-Type",
-                        "value": "application/json",
-                        "type": "text"
+                        "type": "text",
+                        "value": "application/json"
                     },
                     {
                         "key": "Accept",
-                        "value": "application/json",
-                        "type": "text"
+                        "type": "text",
+                        "value": "application/json"
                     }
                 ],
                 "body": {
                     "raw": ""
                 },
                 "url": {
-                    "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics",
+                    "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/deployed/operational.modifyconfig",
                     "host": [
                         "{{POLICY-PAP-URL}}"
                     ],
                         "policy",
                         "pap",
                         "v1",
-                        "pdps",
-                        "statistics"
+                        "policies",
+                        "deployed",
+                        "operational.modifyconfig"
                     ]
                 },
-                "description": "This is an API to fetch current statistics information for the all registered PDP instances."
+                "description": "This is an API to fetch status of a specific deployed policy in the registered PDP instances."
             },
             "response": []
         },
         {
-            "name": "Fetch PdpGroup Statistics",
+            "name": "Fetch All Policy Audit Records",
+            "event": [
+                {
+                    "listen": "prerequest",
+                    "script": {
+                        "exec": [
+                            ""
+                        ],
+                        "type": "text/javascript"
+                    }
+                }
+            ],
             "protocolProfileBehavior": {
                 "disableBodyPruning": true
             },
                     "raw": ""
                 },
                 "url": {
-                    "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup",
+                    "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/audit?recordCount=5",
                     "host": [
                         "{{POLICY-PAP-URL}}"
                     ],
                         "policy",
                         "pap",
                         "v1",
-                        "pdps",
-                        "statistics",
+                        "policies",
+                        "audit"
+                    ],
+                    "query": [
+                        {
+                            "key": "recordCount",
+                            "value": "5"
+                        },
+                        {
+                            "key": "startTime",
+                            "value": "1627219515",
+                            "disabled": true
+                        },
+                        {
+                            "key": "endTime",
+                            "value": "1627478715",
+                            "disabled": true
+                        }
+                    ]
+                },
+                "description": "This is a generic API to fetch audit records of all policies in the database."
+            },
+            "response": []
+        },
+        {
+            "name": "Fetch All Policy Audit Records of a Group",
+            "protocolProfileBehavior": {
+                "disableBodyPruning": true
+            },
+            "request": {
+                "method": "GET",
+                "header": [
+                    {
+                        "key": "Content-Type",
+                        "type": "text",
+                        "value": "application/json"
+                    },
+                    {
+                        "key": "Accept",
+                        "type": "text",
+                        "value": "application/json"
+                    }
+                ],
+                "body": {
+                    "mode": "raw",
+                    "raw": ""
+                },
+                "url": {
+                    "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/audit/defaultGroup?recordCount=5",
+                    "host": [
+                        "{{POLICY-PAP-URL}}"
+                    ],
+                    "path": [
+                        "policy",
+                        "pap",
+                        "v1",
+                        "policies",
+                        "audit",
                         "defaultGroup"
+                    ],
+                    "query": [
+                        {
+                            "key": "recordCount",
+                            "value": "5"
+                        },
+                        {
+                            "key": "startTime",
+                            "value": "1627219515",
+                            "disabled": true
+                        },
+                        {
+                            "key": "endTime",
+                            "value": "1627478715",
+                            "disabled": true
+                        }
                     ]
                 },
-                "description": "This is an API to fetch current statistics information for the all registered PDP instances of the specified PdpGroup (example - \"defaultGroup\")."
+                "description": "This is a generic API to fetch audit records of all policies in the database belonging to a PDP Group."
             },
             "response": []
         },
         {
-            "name": "Fetch PdpSubGroup Statistics",
+            "name": "Fetch Policy Audit Records of a Group",
             "protocolProfileBehavior": {
                 "disableBodyPruning": true
             },
                     "raw": ""
                 },
                 "url": {
-                    "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/apex",
+                    "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/audit/defaultGroup/operational.modifyconfig/1.0.0?recordCount=5",
                     "host": [
                         "{{POLICY-PAP-URL}}"
                     ],
                         "policy",
                         "pap",
                         "v1",
-                        "pdps",
-                        "statistics",
+                        "policies",
+                        "audit",
                         "defaultGroup",
-                        "apex"
+                        "operational.modifyconfig",
+                        "1.0.0"
+                    ],
+                    "query": [
+                        {
+                            "key": "recordCount",
+                            "value": "5"
+                        },
+                        {
+                            "key": "startTime",
+                            "value": "1627219515",
+                            "disabled": true
+                        },
+                        {
+                            "key": "endTime",
+                            "value": "1627478715",
+                            "disabled": true
+                        }
                     ]
                 },
-                "description": "This is an API to fetch current statistics information for the all registered PDP instances of the specified PdpGroup (example - \"defaultGroup\") & PdpSubgroup (example - \"apex\")."
+                "description": "This is an API to fetch audit records of a policy in the database belonging to a PDP Group."
             },
             "response": []
         },
         {
-            "name": "Fetch PDP Statistics",
+            "name": "Fetch Policy Audit Records",
             "protocolProfileBehavior": {
                 "disableBodyPruning": true
             },
                     "raw": ""
                 },
                 "url": {
-                    "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/apex/dev-policy-apex-pdp-0",
+                    "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/audit/operational.modifyconfig/1.0.0?recordCount=5",
                     "host": [
                         "{{POLICY-PAP-URL}}"
                     ],
                         "policy",
                         "pap",
                         "v1",
-                        "pdps",
-                        "statistics",
-                        "defaultGroup",
-                        "apex",
-                        "dev-policy-apex-pdp-0"
+                        "policies",
+                        "audit",
+                        "operational.modifyconfig",
+                        "1.0.0"
+                    ],
+                    "query": [
+                        {
+                            "key": "recordCount",
+                            "value": "5"
+                        },
+                        {
+                            "key": "startTime",
+                            "value": "1627219515",
+                            "disabled": true
+                        },
+                        {
+                            "key": "endTime",
+                            "value": "1627478715",
+                            "disabled": true
+                        }
                     ]
                 },
-                "description": "This is an API to fetch current statistics information for the specified PDP instance (example - \"dev-policy-apex-pdp-0\") of the specified PdpGroup (example - \"defaultGroup\") & PdpSubgroup (example - \"apex\")."
+                "description": "This is an API to fetch audit records of a policy in the database."
             },
             "response": []
         },
         {
             "listen": "prerequest",
             "script": {
-                "id": "d6987a6d-a224-4288-a7bd-4c1c209a2637",
                 "type": "text/javascript",
                 "exec": [
                     ""
         {
             "listen": "test",
             "script": {
-                "id": "731a9aab-e8f2-4dc6-941c-ac7e142c5177",
                 "type": "text/javascript",
                 "exec": [
                     ""
     ],
     "variable": [
         {
-            "id": "bc82ca5c-f667-4118-9da1-e78a9b532b91",
             "key": "USER",
-            "value": "healthcheck",
+            "value": "policyadmin",
             "type": "string"
         },
         {
-            "id": "1c2733ff-2507-49e8-ba07-b0f85ea97914",
             "key": "PASSWORD",
             "value": "zb!XztG34",
             "type": "string"
         }
-    ],
-    "protocolProfileBehavior": {}
+    ]
 }
\ No newline at end of file