summaryrefslogtreecommitdiffstats
path: root/docs/pap
diff options
context:
space:
mode:
Diffstat (limited to 'docs/pap')
-rw-r--r--docs/pap/pap.rst92
-rw-r--r--docs/pap/swagger/consolidated-healthcheck-pap.json101
-rw-r--r--docs/pap/swagger/deployed-policy-pap.json322
-rw-r--r--docs/pap/swagger/deployments-batch-pap.json150
-rw-r--r--docs/pap/swagger/group-delete-pap.json94
-rw-r--r--docs/pap/swagger/group-query-pap.json210
-rw-r--r--docs/pap/swagger/groups-batch-pap.json215
-rw-r--r--docs/pap/swagger/health-check-pap.json71
-rw-r--r--docs/pap/swagger/pdp-statistics-pap.json455
-rw-r--r--docs/pap/swagger/policy-audit-pap.json489
-rw-r--r--docs/pap/swagger/policy-deploy-pap.json118
-rw-r--r--docs/pap/swagger/policy-status-pap.json411
-rw-r--r--docs/pap/swagger/policy-undeploy-pap.json166
-rw-r--r--docs/pap/swagger/state-change-pap.json101
-rw-r--r--docs/pap/swagger/statistics-pap.json91
15 files changed, 62 insertions, 3024 deletions
diff --git a/docs/pap/pap.rst b/docs/pap/pap.rst
index f46d1c79..c6da41b2 100644
--- a/docs/pap/pap.rst
+++ b/docs/pap/pap.rst
@@ -3,8 +3,8 @@
.. _pap-label:
-Policy Administration Point (PAP) Architecture
-##############################################
+Policy Administration Point API
+###############################
.. contents::
:depth: 3
@@ -12,6 +12,9 @@ Policy Administration Point (PAP) Architecture
.. toctree::
InternalPapPdp.rst
+Policy Administration Point (PAP) Architecture
+==============================================
+
The Policy Administration Point (PAP) keeps track of PDPs, supporting the deployment of PDP groups and the deployment
of policies across those PDP groups. Policies are created using the Policy API, but are deployed via the PAP.
@@ -169,9 +172,11 @@ are added in the response to each call:
"x-patchversion", "0", "PATCH version of the API"
"x-onap-requestid", "e1763e61-9eef-4911-b952-1be1edd9812b", "described above; used for logging purposes"
-:download:`Download Health Check PAP API Swagger <swagger/health-check-pap.json>`
+.. csv-table::
+ :header: "/healthcheck"
+ :widths: 10
-.. swaggerv2doc:: swagger/health-check-pap.json
+ `Health Check PAP Swagger <./local-swagger.html#tag/HealthCheckRestControllerV1>`_
This operation performs a health check on the PAP.
@@ -180,9 +185,11 @@ Here is a sample response:
.. literalinclude:: response/health-check-pap-resp.json
:language: json
-:download:`Download Consolidated Health Check PAP API Swagger <swagger/consolidated-healthcheck-pap.json>`
+.. csv-table::
+ :header: "/pdps/healthcheck"
+ :widths: 10
-.. swaggerv2doc:: swagger/consolidated-healthcheck-pap.json
+ `Consolidated Health Check PAP Swagger <./local-swagger.html#tag/PolicyComponentsHealthCheckControllerV1>`_
This operation performs a health check of all policy components. The response
contains the health check result of each component. The consolidated health check
@@ -194,9 +201,11 @@ Here is a sample response:
.. literalinclude:: response/consolidated-healthcheck-pap-resp.json
:language: json
-:download:`Download Statistics PAP API Swagger <swagger/statistics-pap.json>`
+.. csv-table::
+ :header: "/statistics"
+ :widths: 10
-.. swaggerv2doc:: swagger/statistics-pap.json
+ `Statistics PAP Swagger <./local-swagger.html#tag/StatisticsRestControllerV1>`_
This operation allows statistics for PDP groups, PDP subgroups, and individual PDPs to be retrieved.
@@ -209,16 +218,20 @@ Here is a sample response:
.. literalinclude:: response/statistics-pap-resp.json
:language: json
-:download:`Download State Change PAP Swagger <swagger/state-change-pap.json>`
+.. csv-table::
+ :header: "/pdps/groups/{name}"
+ :widths: 10
-.. swaggerv2doc:: swagger/state-change-pap.json
+ `PDP State Change PAP Swagger <./local-swagger.html#tag/PdpGroupStateChangeControllerV1>`_
The state of PDP groups is managed by this operation. PDP groups can be in states PASSIVE, TEST, SAFE, or ACTIVE. For a full
description of PDP group states, see the :ref:`ONAP Policy Framework Architecture <architecture-label>` page.
-:download:`Download Group Batch PAP API Swagger <swagger/groups-batch-pap.json>`
+.. csv-table::
+ :header: "/pdps/groups/batch"
+ :widths: 10
-.. swaggerv2doc:: swagger/groups-batch-pap.json
+ `Group Batch PAP Swagger <./local-swagger.html#tag/PdpGroupCreateOrUpdateControllerV1>`_
This operation allows the PDP groups and subgroups to be created and updated. Many PDP groups can be created or updated
in a single POST operation by specifying more than one PDP group in the POST operation body.
@@ -249,15 +262,19 @@ Here is a sample request:
.. literalinclude:: request/groups-batch-pap-req.json
:language: json
-:download:`Download Group Delete PAP API Swagger <swagger/group-delete-pap.json>`
+.. csv-table::
+ :header: "/pdps/groups/{name}"
+ :widths: 10
-.. swaggerv2doc:: swagger/group-delete-pap.json
+ `PdpGroup Delete PAP Swagger <./local-swagger.html#tag/PdpGroupDeleteControllerV1>`_
The API also allows PDP groups to be deleted. DELETE operations are only permitted on PDP groups in PASSIVE state.
-:download:`Download Group Query PAP API Swagger <swagger/group-query-pap.json>`
+.. csv-table::
+ :header: "/pdps"
+ :widths: 10
-.. swaggerv2doc:: swagger/group-query-pap.json
+ `PdpGroup Query PAP Swagger <./local-swagger.html#tag/PdpGroupQueryControllerV1>`_
This operation allows the PDP groups and subgroups to be listed as well as the policies that are deployed on each PDP
group and subgroup.
@@ -267,9 +284,11 @@ Here is a sample response:
.. literalinclude:: response/group-query-pap-resp.json
:language: json
-:download:`Download Deployments Batch PAP API Swagger <swagger/deployments-batch-pap.json>`
+.. csv-table::
+ :header: "/pdps/deployments/batch"
+ :widths: 10
-.. swaggerv2doc:: swagger/deployments-batch-pap.json
+ `Deployments Update PAP Swagger <./local-swagger.html#tag/PdpGroupDeployControllerV1>`_
This operation allows policies to be deployed on specific PDP groups.
Each subgroup includes an "action" property, which is used to indicate
@@ -289,9 +308,11 @@ Here is a sample response:
.. literalinclude:: response/deployment-pap-resp.json
:language: json
-:download:`Download Deploy PAP API Swagger <swagger/policy-deploy-pap.json>`
+.. csv-table::
+ :header: "/pdps/policies"
+ :widths: 10
-.. swaggerv2doc:: swagger/policy-deploy-pap.json
+ `Deploy PAP Swagger <./local-swagger.html#operation/deployPolicies>`_
This operation allows policies to be deployed across all relevant PDP groups.
PAP will deploy the specified policies to all relevant subgroups. Only the
@@ -313,9 +334,11 @@ Here is a sample response:
.. literalinclude:: response/deployment-pap-resp.json
:language: json
-:download:`Download Undeploy PAP API Swagger <swagger/policy-undeploy-pap.json>`
+.. csv-table::
+ :header: "/pdps/policies/{name}"
+ :widths: 10
-.. swaggerv2doc:: swagger/policy-undeploy-pap.json
+ `Undeploy PAP Swagger <./local-swagger.html#operation/deletePolicy>`_
This operation allows policies to be undeployed from PDP groups.
@@ -331,9 +354,12 @@ Here is a sample response:
.. literalinclude:: response/deployment-pap-resp.json
:language: json
-:download:`Download Policy Status PAP API Swagger <swagger/policy-status-pap.json>`
+.. csv-table::
+ :header: "/policies/status"
+ :widths: 10
+
+ `All Policy Status PAP Swagger <./local-swagger.html#operation/getStatusOfAllPolicies>`_
-.. swaggerv2doc:: swagger/policy-status-pap.json
This operation allows the status of all policies that are deployed or undeployed to be listed together.
The result can be filtered based on pdp group name, policy name & version.
@@ -346,9 +372,11 @@ Here is a sample response:
.. literalinclude:: response/policy-status-pap-resp.json
:language: json
-:download:`Download Deployed Policy PAP API Swagger <swagger/deployed-policy-pap.json>`
+.. csv-table::
+ :header: "/policies/deployed"
+ :widths: 10
-.. swaggerv2doc:: swagger/deployed-policy-pap.json
+ `Deployed Policy Status PAP Swagger <./local-swagger.html#operation/queryAllDeployedPolicies>`_
This operation allows the deployed policies to be listed together with their respective deployment status.
The result can be filtered based on policy name & version.
@@ -358,9 +386,11 @@ Here is a sample response:
.. literalinclude:: response/deployed-policy-pap-resp.json
:language: json
-:download:`Download PDP Statistics PAP API Swagger <swagger/pdp-statistics-pap.json>`
+.. csv-table::
+ :header: "/pdps/statistics"
+ :widths: 10
-.. swaggerv2doc:: swagger/pdp-statistics-pap.json
+ `Policy Statistics PAP Swagger <./local-swagger.html#tag/StatisticsRestControllerV1>`_
This operation allows the PDP statistics to be retrieved for all registered PDPs.
The result can be filtered based on PDP group, PDP subgroup & PDP instance.
@@ -371,9 +401,11 @@ Here is a sample response:
.. literalinclude:: response/pdp-statistics-pap-resp.json
:language: json
-:download:`Download Policy Audit PAP API Swagger <swagger/policy-audit-pap.json>`
+.. csv-table::
+ :header: "/policies/audit"
+ :widths: 10
-.. swaggerv2doc:: swagger/policy-audit-pap.json
+ `Policy Status PAP Swagger <./local-swagger.html#tag/PolicyAuditControllerV1>`_
This operation allows the audit records of policies to be listed together.
The result can be filtered based on pdp group name, policy name & version.
diff --git a/docs/pap/swagger/consolidated-healthcheck-pap.json b/docs/pap/swagger/consolidated-healthcheck-pap.json
deleted file mode 100644
index 2044bc8a..00000000
--- a/docs/pap/swagger/consolidated-healthcheck-pap.json
+++ /dev/null
@@ -1,101 +0,0 @@
-{
- "swagger": "2.0",
- "basePath": "/",
- "tags": [
- {
- "name": "Consolidated Healthcheck"
- }
- ],
- "schemes": [
- "http",
- "https"
- ],
- "consumes": [
- "application/json",
- "application/yaml"
- ],
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "paths": {
- "/policy/pap/v1/components/healthcheck": {
- "get": {
- "tags": [
- "Consolidated Healthcheck"
- ],
- "summary": "Returns health status of all policy components, including PAP, API, Distribution, and PDPs",
- "description": "Queries health status of all policy components, returning all policy components health status",
- "operationId": "policyComponentsHealthCheck",
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "parameters": [
- {
- "name": "X-ONAP-RequestID",
- "in": "header",
- "description": "RequestID for http transaction",
- "required": false,
- "type": "string",
- "format": "uuid"
- }
- ],
- "responses": {
- "200": {
- "description": "successful operation",
- "headers": {
- "X-MinorVersion": {
- "type": "string",
- "description": "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion": {
- "type": "string",
- "description": "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion": {
- "type": "string",
- "description": "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID": {
- "type": "string",
- "format": "uuid",
- "description": "Used to track REST transactions for logging purpose"
- }
- },
- "schema": {
- "type": "object",
- "additionalProperties": {
- "type": "object"
- }
- }
- },
- "401": {
- "description": "Authentication Error"
- },
- "403": {
- "description": "Authorization Error"
- },
- "500": {
- "description": "Internal Server Error"
- }
- },
- "security": [
- {
- "basicAuth": []
- }
- ],
- "x-interface info": {
- "api-version": "1.0.0",
- "last-mod-release": "Frankfurt"
- }
- }
- }
- },
- "securityDefinitions": {
- "basicAuth": {
- "description": "",
- "type": "basic"
- }
- }
-} \ No newline at end of file
diff --git a/docs/pap/swagger/deployed-policy-pap.json b/docs/pap/swagger/deployed-policy-pap.json
deleted file mode 100644
index 09280c7b..00000000
--- a/docs/pap/swagger/deployed-policy-pap.json
+++ /dev/null
@@ -1,322 +0,0 @@
-{
- "swagger": "2.0",
- "basePath": "/",
- "tags": [
- {
- "name": "Policy Deployment Status"
- }
- ],
- "schemes": [
- "http",
- "https"
- ],
- "consumes": [
- "application/json",
- "application/yaml"
- ],
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "paths": {
- "/policy/pap/v1/policies/deployed": {
- "get": {
- "tags": [
- "Policy Deployment Status"
- ],
- "summary": "Queries status of all deployed policies",
- "description": "Queries status of all deployed policies, returning success and failure counts of the PDPs",
- "operationId": "queryAllDeployedPolicies",
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "parameters": [
- {
- "name": "X-ONAP-RequestID",
- "in": "header",
- "description": "RequestID for http transaction",
- "required": false,
- "type": "string",
- "format": "uuid"
- }
- ],
- "responses": {
- "200": {
- "description": "successful operation",
- "headers": {
- "X-MinorVersion": {
- "type": "string",
- "description": "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion": {
- "type": "string",
- "description": "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion": {
- "type": "string",
- "description": "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID": {
- "type": "string",
- "format": "uuid",
- "description": "Used to track REST transactions for logging purpose"
- }
- },
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/PolicyStatus"
- }
- }
- },
- "401": {
- "description": "Authentication Error"
- },
- "403": {
- "description": "Authorization Error"
- },
- "500": {
- "description": "Internal Server Error"
- }
- },
- "security": [
- {
- "basicAuth": []
- }
- ],
- "x-interface info": {
- "api-version": "1.0.0",
- "last-mod-release": "Dublin"
- }
- }
- },
- "/policy/pap/v1/policies/deployed/{name}": {
- "get": {
- "tags": [
- "Policy Deployment Status"
- ],
- "summary": "Queries status of specific deployed policies",
- "description": "Queries status of specific deployed policies, returning success and failure counts of the PDPs",
- "operationId": "queryDeployedPolicies",
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "parameters": [
- {
- "name": "name",
- "in": "path",
- "description": "Policy Id",
- "required": true,
- "type": "string"
- },
- {
- "name": "X-ONAP-RequestID",
- "in": "header",
- "description": "RequestID for http transaction",
- "required": false,
- "type": "string",
- "format": "uuid"
- }
- ],
- "responses": {
- "200": {
- "description": "successful operation",
- "headers": {
- "X-MinorVersion": {
- "type": "string",
- "description": "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion": {
- "type": "string",
- "description": "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion": {
- "type": "string",
- "description": "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID": {
- "type": "string",
- "format": "uuid",
- "description": "Used to track REST transactions for logging purpose"
- }
- },
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/PolicyStatus"
- }
- }
- },
- "401": {
- "description": "Authentication Error"
- },
- "403": {
- "description": "Authorization Error"
- },
- "500": {
- "description": "Internal Server Error"
- }
- },
- "security": [
- {
- "basicAuth": []
- }
- ],
- "x-interface info": {
- "api-version": "1.0.0",
- "last-mod-release": "Dublin"
- }
- }
- },
- "/policy/pap/v1/policies/deployed/{name}/{version}": {
- "get": {
- "tags": [
- "Policy Deployment Status"
- ],
- "summary": "Queries status of a specific deployed policy",
- "description": "Queries status of a specific deployed policy, returning success and failure counts of the PDPs",
- "operationId": "queryDeployedPolicy",
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "parameters": [
- {
- "name": "name",
- "in": "path",
- "description": "Policy Id",
- "required": true,
- "type": "string"
- },
- {
- "name": "version",
- "in": "path",
- "description": "Policy Version",
- "required": true,
- "type": "string"
- },
- {
- "name": "X-ONAP-RequestID",
- "in": "header",
- "description": "RequestID for http transaction",
- "required": false,
- "type": "string",
- "format": "uuid"
- }
- ],
- "responses": {
- "200": {
- "description": "successful operation",
- "headers": {
- "X-MinorVersion": {
- "type": "string",
- "description": "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion": {
- "type": "string",
- "description": "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion": {
- "type": "string",
- "description": "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID": {
- "type": "string",
- "format": "uuid",
- "description": "Used to track REST transactions for logging purpose"
- }
- },
- "schema": {
- "$ref": "#/definitions/PolicyStatus"
- }
- },
- "401": {
- "description": "Authentication Error"
- },
- "403": {
- "description": "Authorization Error"
- },
- "500": {
- "description": "Internal Server Error"
- }
- },
- "security": [
- {
- "basicAuth": []
- }
- ],
- "x-interface info": {
- "api-version": "1.0.0",
- "last-mod-release": "Dublin"
- }
- }
- }
- },
- "securityDefinitions": {
- "basicAuth": {
- "description": "",
- "type": "basic"
- }
- },
- "definitions": {
- "ToscaPolicyIdentifier": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "version": {
- "type": "string"
- }
- }
- },
- "ToscaPolicyTypeIdentifier": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "version": {
- "type": "string"
- }
- }
- },
- "PolicyStatus": {
- "type": "object",
- "properties": {
- "policyTypeId": {
- "type": "string"
- },
- "policyTypeVersion": {
- "type": "string"
- },
- "policyId": {
- "type": "string"
- },
- "policyVersion": {
- "type": "string"
- },
- "successCount": {
- "type": "integer",
- "format": "int32"
- },
- "failureCount": {
- "type": "integer",
- "format": "int32"
- },
- "incompleteCount": {
- "type": "integer",
- "format": "int32"
- },
- "policy": {
- "$ref": "#/definitions/ToscaPolicyIdentifier"
- },
- "policyType": {
- "$ref": "#/definitions/ToscaPolicyTypeIdentifier"
- }
- }
- }
- }
-} \ No newline at end of file
diff --git a/docs/pap/swagger/deployments-batch-pap.json b/docs/pap/swagger/deployments-batch-pap.json
deleted file mode 100644
index 768dae99..00000000
--- a/docs/pap/swagger/deployments-batch-pap.json
+++ /dev/null
@@ -1,150 +0,0 @@
-{
- "swagger" : "2.0",
- "basePath" : "/",
- "tags" : [ {
- "name" : "Deployments Update"
- } ],
- "schemes" : [ "http", "https" ],
- "consumes" : [ "application/json", "application/yaml" ],
- "produces" : [ "application/json", "application/yaml" ],
- "paths" : {
- "/policy/pap/v1/pdps/deployments/batch" : {
- "post" : {
- "tags" : [ "Deployments Update" ],
- "summary" : "Updates policy deployments within specific PDP groups",
- "description" : "Updates policy deployments within specific PDP groups, returning optional error details",
- "operationId" : "updateGroupPolicies",
- "produces" : [ "application/json", "application/yaml" ],
- "parameters" : [ {
- "name" : "X-ONAP-RequestID",
- "in" : "header",
- "description" : "RequestID for http transaction",
- "required" : false,
- "type" : "string",
- "format" : "uuid"
- }, {
- "in" : "body",
- "name" : "body",
- "description" : "List of PDP Group Deployments",
- "required" : true,
- "schema" : {
- "$ref" : "#/definitions/DeploymentGroups"
- }
- } ],
- "responses" : {
- "202" : {
- "description" : "operation accepted",
- "headers" : {
- "X-MinorVersion" : {
- "type" : "string",
- "description" : "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion" : {
- "type" : "string",
- "description" : "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion" : {
- "type" : "string",
- "description" : "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID" : {
- "type" : "string",
- "format" : "uuid",
- "description" : "Used to track REST transactions for logging purpose"
- }
- },
- "schema" : {
- "$ref" : "#/definitions/PdpGroupDeployResponse"
- }
- },
- "401" : {
- "description" : "Authentication Error"
- },
- "403" : {
- "description" : "Authorization Error"
- },
- "500" : {
- "description" : "Internal Server Error"
- }
- },
- "security" : [ {
- "basicAuth" : [ ]
- } ],
- "x-interface info" : {
- "api-version" : "1.0.0",
- "last-mod-release" : "Dublin"
- }
- }
- }
- },
- "securityDefinitions" : {
- "basicAuth" : {
- "description" : "",
- "type" : "basic"
- }
- },
- "definitions" : {
- "ToscaPolicyIdentifier" : {
- "type" : "object",
- "properties" : {
- "name" : {
- "type" : "string"
- },
- "version" : {
- "type" : "string"
- }
- }
- },
- "PdpGroupDeployResponse" : {
- "type" : "object",
- "properties" : {
- "errorDetails" : {
- "type" : "string"
- }
- }
- },
- "DeploymentGroup" : {
- "type" : "object",
- "properties" : {
- "name" : {
- "type" : "string"
- },
- "deploymentSubgroups" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/DeploymentSubGroup"
- }
- }
- }
- },
- "DeploymentGroups" : {
- "type" : "object",
- "properties" : {
- "groups" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/DeploymentGroup"
- }
- }
- }
- },
- "DeploymentSubGroup" : {
- "type" : "object",
- "properties" : {
- "pdpType" : {
- "type" : "string"
- },
- "action" : {
- "type" : "string",
- "enum" : [ "POST", "DELETE", "PATCH" ]
- },
- "policies" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/ToscaPolicyIdentifier"
- }
- }
- }
- }
- }
-}
diff --git a/docs/pap/swagger/group-delete-pap.json b/docs/pap/swagger/group-delete-pap.json
deleted file mode 100644
index 4b5c217c..00000000
--- a/docs/pap/swagger/group-delete-pap.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "swagger" : "2.0",
- "basePath" : "/",
- "tags" : [ {
- "name" : "PdpGroup Delete"
- } ],
- "schemes" : [ "http", "https" ],
- "consumes" : [ "application/json" ],
- "produces" : [ "application/json" ],
- "paths" : {
- "/policy/pap/v1/pdps/groups/{name}" : {
- "delete" : {
- "tags" : [ "PdpGroup Delete" ],
- "summary" : "Delete PDP Group",
- "description" : "Deletes a PDP Group, returning optional error details",
- "operationId" : "deleteGroup",
- "produces" : [ "application/json" ],
- "parameters" : [ {
- "name" : "X-ONAP-RequestID",
- "in" : "header",
- "description" : "RequestID for http transaction",
- "required" : false,
- "type" : "string",
- "format" : "uuid"
- }, {
- "name" : "name",
- "in" : "path",
- "description" : "PDP Group Name",
- "required" : true,
- "type" : "string"
- } ],
- "responses" : {
- "200" : {
- "description" : "successful operation",
- "headers" : {
- "X-MinorVersion" : {
- "type" : "string",
- "description" : "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion" : {
- "type" : "string",
- "description" : "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion" : {
- "type" : "string",
- "description" : "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID" : {
- "type" : "string",
- "format" : "uuid",
- "description" : "Used to track REST transactions for logging purpose"
- }
- },
- "schema" : {
- "$ref" : "#/definitions/PdpGroupDeleteResponse"
- }
- },
- "401" : {
- "description" : "Authentication Error"
- },
- "403" : {
- "description" : "Authorization Error"
- },
- "500" : {
- "description" : "Internal Server Error"
- }
- },
- "security" : [ {
- "basicAuth" : [ ]
- } ],
- "x-interface info" : {
- "api-version" : "1.0.0",
- "last-mod-release" : "Dublin"
- }
- }
- }
- },
- "securityDefinitions" : {
- "basicAuth" : {
- "description" : "",
- "type" : "basic"
- }
- },
- "definitions" : {
- "PdpGroupDeleteResponse" : {
- "type" : "object",
- "properties" : {
- "errorDetails" : {
- "type" : "string"
- }
- }
- }
- }
-}
diff --git a/docs/pap/swagger/group-query-pap.json b/docs/pap/swagger/group-query-pap.json
deleted file mode 100644
index b31515c8..00000000
--- a/docs/pap/swagger/group-query-pap.json
+++ /dev/null
@@ -1,210 +0,0 @@
-{
- "swagger" : "2.0",
- "basePath" : "/",
- "tags" : [ {
- "name" : "PdpGroup Query"
- } ],
- "schemes" : [ "http", "https" ],
- "consumes" : [ "application/json" ],
- "produces" : [ "application/json" ],
- "paths" : {
- "/policy/pap/v1/pdps" : {
- "get" : {
- "tags" : [ "PdpGroup Query" ],
- "summary" : "Query details of all PDP groups",
- "description" : "Queries details of all PDP groups, returning all group details",
- "operationId" : "queryGroupDetails",
- "produces" : [ "application/json" ],
- "parameters" : [ {
- "name" : "X-ONAP-RequestID",
- "in" : "header",
- "description" : "RequestID for http transaction",
- "required" : false,
- "type" : "string",
- "format" : "uuid"
- } ],
- "responses" : {
- "200" : {
- "description" : "successful operation",
- "headers" : {
- "X-MinorVersion" : {
- "type" : "string",
- "description" : "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion" : {
- "type" : "string",
- "description" : "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion" : {
- "type" : "string",
- "description" : "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID" : {
- "type" : "string",
- "format" : "uuid",
- "description" : "Used to track REST transactions for logging purpose"
- }
- },
- "schema" : {
- "$ref" : "#/definitions/PdpGroups"
- }
- },
- "401" : {
- "description" : "Authentication Error"
- },
- "403" : {
- "description" : "Authorization Error"
- },
- "500" : {
- "description" : "Internal Server Error"
- }
- },
- "security" : [ {
- "basicAuth" : [ ]
- } ],
- "x-interface info" : {
- "api-version" : "1.0.0",
- "last-mod-release" : "Dublin"
- }
- }
- }
- },
- "securityDefinitions" : {
- "basicAuth" : {
- "description" : "",
- "type" : "basic"
- }
- },
- "definitions" : {
- "Pdp" : {
- "type" : "object",
- "properties" : {
- "instanceId" : {
- "type" : "string"
- },
- "pdpState" : {
- "type" : "string",
- "enum" : [ "PASSIVE", "SAFE", "TEST", "ACTIVE", "TERMINATED" ]
- },
- "healthy" : {
- "type" : "string",
- "enum" : [ "HEALTHY", "NOT_HEALTHY", "TEST_IN_PROGRESS", "UNKNOWN" ]
- },
- "message" : {
- "type" : "string"
- }
- }
- },
- "PdpGroup" : {
- "type" : "object",
- "properties" : {
- "name" : {
- "type" : "string"
- },
- "description" : {
- "type" : "string"
- },
- "pdpGroupState" : {
- "type" : "string",
- "enum" : [ "PASSIVE", "SAFE", "TEST", "ACTIVE", "TERMINATED" ]
- },
- "properties" : {
- "type" : "object",
- "additionalProperties" : {
- "type" : "string"
- }
- },
- "pdpSubgroups" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/PdpSubGroup"
- }
- }
- }
- },
- "PdpGroups" : {
- "type" : "object",
- "properties" : {
- "groups" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/PdpGroup"
- }
- }
- }
- },
- "PdpSubGroup" : {
- "type" : "object",
- "properties" : {
- "pdpType" : {
- "type" : "string"
- },
- "supportedPolicyTypes" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/ToscaPolicyTypeIdentifier"
- }
- },
- "policies" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/ToscaPolicyIdentifier"
- }
- },
- "currentInstanceCount" : {
- "type" : "integer",
- "format" : "int32"
- },
- "desiredInstanceCount" : {
- "type" : "integer",
- "format" : "int32"
- },
- "properties" : {
- "type" : "object",
- "additionalProperties" : {
- "type" : "string"
- }
- },
- "pdpInstances" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/Pdp"
- }
- }
- }
- },
- "ToscaPolicyIdentifier" : {
- "type" : "object",
- "properties" : {
- "name" : {
- "type" : "string"
- },
- "version" : {
- "type" : "string"
- }
- }
- },
- "ToscaPolicyTypeIdentifier" : {
- "type" : "object",
- "properties" : {
- "name" : {
- "type" : "string"
- },
- "version" : {
- "type" : "string"
- }
- }
- },
- "ToscaPolicyIdentifierOptVersion" : {
- "type" : "object",
- "properties" : {
- "name" : {
- "type" : "string"
- },
- "version" : {
- "type" : "string"
- }
- }
- }
- }
-}
diff --git a/docs/pap/swagger/groups-batch-pap.json b/docs/pap/swagger/groups-batch-pap.json
deleted file mode 100644
index 2d02e998..00000000
--- a/docs/pap/swagger/groups-batch-pap.json
+++ /dev/null
@@ -1,215 +0,0 @@
-{
- "swagger" : "2.0",
- "basePath" : "/",
- "tags" : [ {
- "name" : "PdpGroup Create/Update"
- } ],
- "schemes" : [ "http", "https" ],
- "consumes" : [ "application/json", "application/yaml" ],
- "produces" : [ "application/json", "application/yaml" ],
- "paths" : {
- "/policy/pap/v1/pdps/groups/batch" : {
- "post" : {
- "tags" : [ "PdpGroup Create/Update" ],
- "summary" : "Create or update PDP Groups",
- "description" : "Create or update one or more PDP Groups, returning optional error details",
- "operationId" : "createOrUpdateGroups",
- "produces" : [ "application/json", "application/yaml" ],
- "parameters" : [ {
- "name" : "X-ONAP-RequestID",
- "in" : "header",
- "description" : "RequestID for http transaction",
- "required" : false,
- "type" : "string",
- "format" : "uuid"
- }, {
- "in" : "body",
- "name" : "body",
- "description" : "List of PDP Group Configuration",
- "required" : true,
- "schema" : {
- "$ref" : "#/definitions/PdpGroups"
- }
- } ],
- "responses" : {
- "200" : {
- "description" : "successful operation",
- "headers" : {
- "X-MinorVersion" : {
- "type" : "string",
- "description" : "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion" : {
- "type" : "string",
- "description" : "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion" : {
- "type" : "string",
- "description" : "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID" : {
- "type" : "string",
- "format" : "uuid",
- "description" : "Used to track REST transactions for logging purpose"
- }
- },
- "schema" : {
- "$ref" : "#/definitions/PdpGroupUpdateResponse"
- }
- },
- "401" : {
- "description" : "Authentication Error"
- },
- "403" : {
- "description" : "Authorization Error"
- },
- "500" : {
- "description" : "Internal Server Error"
- }
- },
- "security" : [ {
- "basicAuth" : [ ]
- } ],
- "x-interface info" : {
- "api-version" : "1.0.0",
- "last-mod-release" : "Dublin"
- }
- }
- }
- },
- "securityDefinitions" : {
- "basicAuth" : {
- "description" : "",
- "type" : "basic"
- }
- },
- "definitions" : {
- "PdpGroupUpdateResponse" : {
- "type" : "object",
- "properties" : {
- "errorDetails" : {
- "type" : "string"
- }
- }
- },
- "Pdp" : {
- "type" : "object",
- "properties" : {
- "instanceId" : {
- "type" : "string"
- },
- "pdpState" : {
- "type" : "string",
- "enum" : [ "PASSIVE", "SAFE", "TEST", "ACTIVE", "TERMINATED" ]
- },
- "healthy" : {
- "type" : "string",
- "enum" : [ "HEALTHY", "NOT_HEALTHY", "TEST_IN_PROGRESS", "UNKNOWN" ]
- },
- "message" : {
- "type" : "string"
- }
- }
- },
- "PdpGroup" : {
- "type" : "object",
- "properties" : {
- "name" : {
- "type" : "string"
- },
- "description" : {
- "type" : "string"
- },
- "pdpGroupState" : {
- "type" : "string",
- "enum" : [ "PASSIVE", "SAFE", "TEST", "ACTIVE", "TERMINATED" ]
- },
- "properties" : {
- "type" : "object",
- "additionalProperties" : {
- "type" : "string"
- }
- },
- "pdpSubgroups" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/PdpSubGroup"
- }
- }
- }
- },
- "PdpGroups" : {
- "type" : "object",
- "properties" : {
- "groups" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/PdpGroup"
- }
- }
- }
- },
- "PdpSubGroup" : {
- "type" : "object",
- "properties" : {
- "pdpType" : {
- "type" : "string"
- },
- "supportedPolicyTypes" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/ToscaPolicyTypeIdentifier"
- }
- },
- "policies" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/ToscaPolicyIdentifier"
- }
- },
- "currentInstanceCount" : {
- "type" : "integer",
- "format" : "int32"
- },
- "desiredInstanceCount" : {
- "type" : "integer",
- "format" : "int32"
- },
- "properties" : {
- "type" : "object",
- "additionalProperties" : {
- "type" : "string"
- }
- },
- "pdpInstances" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/Pdp"
- }
- }
- }
- },
- "ToscaPolicyIdentifier" : {
- "type" : "object",
- "properties" : {
- "name" : {
- "type" : "string"
- },
- "version" : {
- "type" : "string"
- }
- }
- },
- "ToscaPolicyTypeIdentifier" : {
- "type" : "object",
- "properties" : {
- "name" : {
- "type" : "string"
- },
- "version" : {
- "type" : "string"
- }
- }
- }
- }
-} \ No newline at end of file
diff --git a/docs/pap/swagger/health-check-pap.json b/docs/pap/swagger/health-check-pap.json
deleted file mode 100644
index 3bf87e22..00000000
--- a/docs/pap/swagger/health-check-pap.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "swagger" : "2.0",
- "basePath" : "/",
- "tags" : [ {
- "name" : "HealthCheck"
- } ],
- "schemes" : [ "http", "https" ],
- "consumes" : [ "application/json" ],
- "produces" : [ "application/json" ],
- "paths" : {
- "/policy/pap/v1/healthcheck" : {
- "get" : {
- "tags" : [ "HealthCheck" ],
- "summary" : "Perform healthcheck",
- "description" : "Returns healthy status of the Policy Administration component",
- "operationId" : "healthcheck",
- "produces" : [ "application/json" ],
- "parameters" : [ ],
- "responses" : {
- "200" : {
- "description" : "successful operation",
- "schema" : {
- "$ref" : "#/definitions/HealthCheckReport"
- }
- },
- "401" : {
- "description" : "Authentication Error"
- },
- "403" : {
- "description" : "Authorization Error"
- },
- "500" : {
- "description" : "Internal Server Error"
- }
- },
- "security" : [ {
- "basicAuth" : [ ]
- } ]
- }
- }
- },
- "securityDefinitions" : {
- "basicAuth" : {
- "description" : "",
- "type" : "basic"
- }
- },
- "definitions" : {
- "HealthCheckReport" : {
- "type" : "object",
- "properties" : {
- "name" : {
- "type" : "string"
- },
- "url" : {
- "type" : "string"
- },
- "healthy" : {
- "type" : "boolean"
- },
- "code" : {
- "type" : "integer",
- "format" : "int32"
- },
- "message" : {
- "type" : "string"
- }
- }
- }
- }
-}
diff --git a/docs/pap/swagger/pdp-statistics-pap.json b/docs/pap/swagger/pdp-statistics-pap.json
deleted file mode 100644
index c2c7b4ce..00000000
--- a/docs/pap/swagger/pdp-statistics-pap.json
+++ /dev/null
@@ -1,455 +0,0 @@
-{
- "swagger": "2.0",
- "basePath": "/",
- "tags": [
- {
- "name": "PDP Statistics"
- }
- ],
- "schemes": [
- "http",
- "https"
- ],
- "consumes": [
- "application/json",
- "application/yaml"
- ],
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "paths": {
- "/policy/pap/v1/pdps/statistics": {
- "get": {
- "tags": [
- "PDP Statistics"
- ],
- "summary": "Fetch statistics for all PDP Groups and subgroups in the system",
- "description": "Returns for all PDP Groups and subgroups statistics of the Policy Administration component",
- "operationId": "pdpStatistics",
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "parameters": [
- {
- "name": "X-ONAP-RequestID",
- "in": "header",
- "description": "RequestID for http transaction",
- "required": false,
- "type": "string",
- "format": "uuid"
- },
- {
- "name": "recordCount",
- "in": "query",
- "description": "Record count between 1-100",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "startTime",
- "in": "query",
- "description": "Start time in epoch timestamp",
- "required": false,
- "type": "integer",
- "format": "int64"
- },
- {
- "name": "endTime",
- "in": "query",
- "description": "End time in epoch timestamp",
- "required": false,
- "type": "integer",
- "format": "int64"
- }
- ],
- "responses": {
- "200": {
- "description": "successful operation",
- "headers": {
- "X-MinorVersion": {
- "type": "string",
- "description": "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion": {
- "type": "string",
- "description": "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion": {
- "type": "string",
- "description": "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID": {
- "type": "string",
- "format": "uuid",
- "description": "Used to track REST transactions for logging purpose"
- }
- },
- "schema": {
- "type": "object",
- "additionalProperties": {
- "type": "object"
- }
- }
- },
- "401": {
- "description": "Authentication Error"
- },
- "403": {
- "description": "Authorization Error"
- },
- "500": {
- "description": "Internal Server Error"
- }
- },
- "security": [
- {
- "basicAuth": []
- }
- ],
- "x-interface info": {
- "api-version": "1.0.0",
- "last-mod-release": "Dublin"
- }
- }
- },
- "/policy/pap/v1/pdps/statistics/{group}": {
- "get": {
- "tags": [
- "PDP Statistics"
- ],
- "summary": "Fetch current statistics for given PDP Group",
- "description": "Returns statistics for given PDP Group of the Policy Administration component",
- "operationId": "pdpGroupStatistics",
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "parameters": [
- {
- "name": "X-ONAP-RequestID",
- "in": "header",
- "description": "RequestID for http transaction",
- "required": false,
- "type": "string",
- "format": "uuid"
- },
- {
- "name": "group",
- "in": "path",
- "description": "PDP Group Name",
- "required": true,
- "type": "string"
- },
- {
- "name": "recordCount",
- "in": "query",
- "description": "Record count between 1-100",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "startTime",
- "in": "query",
- "description": "Start time in epoch timestamp",
- "required": false,
- "type": "integer",
- "format": "int64"
- },
- {
- "name": "endTime",
- "in": "query",
- "description": "End time in epoch timestamp",
- "required": false,
- "type": "integer",
- "format": "int64"
- }
- ],
- "responses": {
- "200": {
- "description": "successful operation",
- "headers": {
- "X-MinorVersion": {
- "type": "string",
- "description": "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion": {
- "type": "string",
- "description": "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion": {
- "type": "string",
- "description": "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID": {
- "type": "string",
- "format": "uuid",
- "description": "Used to track REST transactions for logging purpose"
- }
- },
- "schema": {
- "type": "object",
- "additionalProperties": {
- "type": "object"
- }
- }
- },
- "401": {
- "description": "Authentication Error"
- },
- "403": {
- "description": "Authorization Error"
- },
- "500": {
- "description": "Internal Server Error"
- }
- },
- "security": [
- {
- "basicAuth": []
- }
- ],
- "x-interface info": {
- "api-version": "1.0.0",
- "last-mod-release": "Dublin"
- }
- }
- },
- "/policy/pap/v1/pdps/statistics/{group}/{type}": {
- "get": {
- "tags": [
- "PDP Statistics"
- ],
- "summary": "Fetch statistics for the specified subgroup",
- "description": "Returns statistics for the specified subgroup of the Policy Administration component",
- "operationId": "pdpSubGroupStatistics",
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "parameters": [
- {
- "name": "X-ONAP-RequestID",
- "in": "header",
- "description": "RequestID for http transaction",
- "required": false,
- "type": "string",
- "format": "uuid"
- },
- {
- "name": "group",
- "in": "path",
- "description": "PDP Group Name",
- "required": true,
- "type": "string"
- },
- {
- "name": "type",
- "in": "path",
- "description": "PDP SubGroup type",
- "required": true,
- "type": "string"
- },
- {
- "name": "recordCount",
- "in": "query",
- "description": "Record count between 1-100",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "startTime",
- "in": "query",
- "description": "Start time in epoch timestamp",
- "required": false,
- "type": "integer",
- "format": "int64"
- },
- {
- "name": "endTime",
- "in": "query",
- "description": "End time in epoch timestamp",
- "required": false,
- "type": "integer",
- "format": "int64"
- }
- ],
- "responses": {
- "200": {
- "description": "successful operation",
- "headers": {
- "X-MinorVersion": {
- "type": "string",
- "description": "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion": {
- "type": "string",
- "description": "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion": {
- "type": "string",
- "description": "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID": {
- "type": "string",
- "format": "uuid",
- "description": "Used to track REST transactions for logging purpose"
- }
- },
- "schema": {
- "type": "object",
- "additionalProperties": {
- "type": "object"
- }
- }
- },
- "401": {
- "description": "Authentication Error"
- },
- "403": {
- "description": "Authorization Error"
- },
- "500": {
- "description": "Internal Server Error"
- }
- },
- "security": [
- {
- "basicAuth": []
- }
- ],
- "x-interface info": {
- "api-version": "1.0.0",
- "last-mod-release": "Dublin"
- }
- }
- },
- "/policy/pap/v1/pdps/statistics/{group}/{type}/{pdp}": {
- "get": {
- "tags": [
- "PDP Statistics"
- ],
- "summary": "Fetch statistics for the specified pdp",
- "description": "Returns statistics for the specified pdp of the Policy Administration component",
- "operationId": "pdpInstanceStatistics",
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "parameters": [
- {
- "name": "X-ONAP-RequestID",
- "in": "header",
- "description": "RequestID for http transaction",
- "required": false,
- "type": "string",
- "format": "uuid"
- },
- {
- "name": "group",
- "in": "path",
- "description": "PDP Group Name",
- "required": true,
- "type": "string"
- },
- {
- "name": "type",
- "in": "path",
- "description": "PDP SubGroup type",
- "required": true,
- "type": "string"
- },
- {
- "name": "pdp",
- "in": "path",
- "description": "PDP Instance name",
- "required": true,
- "type": "string"
- },
- {
- "name": "recordCount",
- "in": "query",
- "description": "Record count between 1-100",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "startTime",
- "in": "query",
- "description": "Start time in epoch timestamp",
- "required": false,
- "type": "integer",
- "format": "int64"
- },
- {
- "name": "endTime",
- "in": "query",
- "description": "End time in epoch timestamp",
- "required": false,
- "type": "integer",
- "format": "int64"
- }
- ],
- "responses": {
- "200": {
- "description": "successful operation",
- "headers": {
- "X-MinorVersion": {
- "type": "string",
- "description": "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion": {
- "type": "string",
- "description": "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion": {
- "type": "string",
- "description": "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID": {
- "type": "string",
- "format": "uuid",
- "description": "Used to track REST transactions for logging purpose"
- }
- },
- "schema": {
- "type": "object",
- "additionalProperties": {
- "type": "object"
- }
- }
- },
- "401": {
- "description": "Authentication Error"
- },
- "403": {
- "description": "Authorization Error"
- },
- "500": {
- "description": "Internal Server Error"
- }
- },
- "security": [
- {
- "basicAuth": []
- }
- ],
- "x-interface info": {
- "api-version": "1.0.0",
- "last-mod-release": "Dublin"
- }
- }
- }
- },
- "securityDefinitions": {
- "basicAuth": {
- "description": "",
- "type": "basic"
- }
- }
-} \ No newline at end of file
diff --git a/docs/pap/swagger/policy-audit-pap.json b/docs/pap/swagger/policy-audit-pap.json
deleted file mode 100644
index 1fd92311..00000000
--- a/docs/pap/swagger/policy-audit-pap.json
+++ /dev/null
@@ -1,489 +0,0 @@
-{
- "swagger": "2.0",
- "info": {
- "title": "The APIs listed here are used to fetch audit information for various actions taken on policies.",
- "version": "v1"
- },
- "basePath": "/",
- "tags": [
- {
- "name": "Policy Audit"
- }
- ],
- "schemes": [
- "http",
- "https"
- ],
- "consumes": [
- "application/json",
- "application/yaml"
- ],
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "paths": {
- "/policy/pap/v1/policies/audit": {
- "get": {
- "tags": [
- "Policy Audit"
- ],
- "summary": "Queries audit information for all the policies",
- "description": "Queries audit information for all the policies, returning audit information for all the policies in the database",
- "operationId": "getAllAuditRecords",
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "parameters": [
- {
- "name": "X-ONAP-RequestID",
- "in": "header",
- "description": "RequestID for http transaction",
- "required": false,
- "type": "string",
- "format": "uuid"
- },
- {
- "name": "recordCount",
- "in": "query",
- "description": "Record count between 1-100",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "startTime",
- "in": "query",
- "description": "Start time in epoch timestamp",
- "required": false,
- "type": "integer",
- "format": "int64"
- },
- {
- "name": "endTime",
- "in": "query",
- "description": "End time in epoch timestamp",
- "required": false,
- "type": "integer",
- "format": "int64"
- }
- ],
- "responses": {
- "200": {
- "description": "successful operation",
- "headers": {
- "X-MinorVersion": {
- "type": "string",
- "description": "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion": {
- "type": "string",
- "description": "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion": {
- "type": "string",
- "description": "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID": {
- "type": "string",
- "format": "uuid",
- "description": "Used to track REST transactions for logging purpose"
- }
- },
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/PolicyAudit"
- }
- }
- },
- "401": {
- "description": "Authentication Error"
- },
- "403": {
- "description": "Authorization Error"
- },
- "500": {
- "description": "Internal Server Error"
- }
- },
- "security": [
- {
- "basicAuth": []
- }
- ],
- "x-interface info": {
- "api-version": "1.0.0",
- "last-mod-release": "Dublin"
- }
- }
- },
- "/policy/pap/v1/policies/audit/{pdpGroupName}": {
- "get": {
- "tags": [
- "Policy Audit"
- ],
- "summary": "Queries audit information for all the policies in a PdpGroup",
- "description": "Queries audit information for all the policies in a PdpGroup, returning audit information for all the policies belonging to the PdpGroup",
- "operationId": "getAuditRecordsByGroup",
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "parameters": [
- {
- "name": "X-ONAP-RequestID",
- "in": "header",
- "description": "RequestID for http transaction",
- "required": false,
- "type": "string",
- "format": "uuid"
- },
- {
- "name": "recordCount",
- "in": "query",
- "description": "Record count between 1-100",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "startTime",
- "in": "query",
- "description": "Start time in epoch timestamp",
- "required": false,
- "type": "integer",
- "format": "int64"
- },
- {
- "name": "endTime",
- "in": "query",
- "description": "End time in epoch timestamp",
- "required": false,
- "type": "integer",
- "format": "int64"
- },
- {
- "name": "pdpGroupName",
- "in": "path",
- "description": "PDP Group Name",
- "required": true,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "successful operation",
- "headers": {
- "X-MinorVersion": {
- "type": "string",
- "description": "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion": {
- "type": "string",
- "description": "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion": {
- "type": "string",
- "description": "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID": {
- "type": "string",
- "format": "uuid",
- "description": "Used to track REST transactions for logging purpose"
- }
- },
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/PolicyAudit"
- }
- }
- },
- "401": {
- "description": "Authentication Error"
- },
- "403": {
- "description": "Authorization Error"
- },
- "500": {
- "description": "Internal Server Error"
- }
- },
- "security": [
- {
- "basicAuth": []
- }
- ],
- "x-interface info": {
- "api-version": "1.0.0",
- "last-mod-release": "Dublin"
- }
- }
- },
- "/policy/pap/v1/policies/audit/{policyName}/{policyVersion}": {
- "get": {
- "tags": [
- "Policy Audit"
- ],
- "summary": "Queries audit information for a specific version of a policy",
- "description": "Queries audit information for a specific version of a policy, returning audit information for the policy",
- "operationId": "getAuditRecordsOfPolicy",
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "parameters": [
- {
- "name": "X-ONAP-RequestID",
- "in": "header",
- "description": "RequestID for http transaction",
- "required": false,
- "type": "string",
- "format": "uuid"
- },
- {
- "name": "recordCount",
- "in": "query",
- "description": "Record count between 1-100",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "startTime",
- "in": "query",
- "description": "Start time in epoch timestamp",
- "required": false,
- "type": "integer",
- "format": "int64"
- },
- {
- "name": "endTime",
- "in": "query",
- "description": "End time in epoch timestamp",
- "required": false,
- "type": "integer",
- "format": "int64"
- },
- {
- "name": "policyName",
- "in": "path",
- "description": "Policy Name",
- "required": true,
- "type": "string"
- },
- {
- "name": "policyVersion",
- "in": "path",
- "description": "Policy Version",
- "required": true,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "successful operation",
- "headers": {
- "X-MinorVersion": {
- "type": "string",
- "description": "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion": {
- "type": "string",
- "description": "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion": {
- "type": "string",
- "description": "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID": {
- "type": "string",
- "format": "uuid",
- "description": "Used to track REST transactions for logging purpose"
- }
- },
- "schema": {
- "$ref": "#/definitions/PolicyAudit"
- }
- },
- "401": {
- "description": "Authentication Error"
- },
- "403": {
- "description": "Authorization Error"
- },
- "500": {
- "description": "Internal Server Error"
- }
- },
- "security": [
- {
- "basicAuth": []
- }
- ],
- "x-interface info": {
- "api-version": "1.0.0",
- "last-mod-release": "Dublin"
- }
- }
- },
- "/policy/pap/v1/policies/audit/{pdpGroupName}/{policyName}/{policyVersion}": {
- "get": {
- "tags": [
- "Policy Audit"
- ],
- "summary": "Queries audit information for a specific version of a policy in a PdpGroup",
- "description": "Queries audit information for a specific version of a policy in a PdpGroup, returning audit information for the policy belonging to the PdpGroup",
- "operationId": "getAuditRecordsOfPolicy_1",
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "parameters": [
- {
- "name": "X-ONAP-RequestID",
- "in": "header",
- "description": "RequestID for http transaction",
- "required": false,
- "type": "string",
- "format": "uuid"
- },
- {
- "name": "recordCount",
- "in": "query",
- "description": "Record count between 1-100",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "startTime",
- "in": "query",
- "description": "Start time in epoch timestamp",
- "required": false,
- "type": "integer",
- "format": "int64"
- },
- {
- "name": "endTime",
- "in": "query",
- "description": "End time in epoch timestamp",
- "required": false,
- "type": "integer",
- "format": "int64"
- },
- {
- "name": "pdpGroupName",
- "in": "path",
- "description": "PDP Group Name",
- "required": true,
- "type": "string"
- },
- {
- "name": "policyName",
- "in": "path",
- "description": "Policy Name",
- "required": true,
- "type": "string"
- },
- {
- "name": "policyVersion",
- "in": "path",
- "description": "Policy Version",
- "required": true,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "successful operation",
- "headers": {
- "X-MinorVersion": {
- "type": "string",
- "description": "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion": {
- "type": "string",
- "description": "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion": {
- "type": "string",
- "description": "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID": {
- "type": "string",
- "format": "uuid",
- "description": "Used to track REST transactions for logging purpose"
- }
- },
- "schema": {
- "$ref": "#/definitions/PolicyAudit"
- }
- },
- "401": {
- "description": "Authentication Error"
- },
- "403": {
- "description": "Authorization Error"
- },
- "500": {
- "description": "Internal Server Error"
- }
- },
- "security": [
- {
- "basicAuth": []
- }
- ],
- "x-interface info": {
- "api-version": "1.0.0",
- "last-mod-release": "Dublin"
- }
- }
- }
- },
- "securityDefinitions": {
- "basicAuth": {
- "description": "",
- "type": "basic"
- }
- },
- "definitions": {
- "PolicyAudit": {
- "type": "object",
- "properties": {
- "pdpGroup": {
- "type": "string"
- },
- "pdpType": {
- "type": "string"
- },
- "policy": {
- "$ref": "#/definitions/ToscaConceptIdentifier"
- },
- "action": {
- "type": "string"
- },
- "timestamp": {
- "type": "string"
- },
- "user": {
- "type": "string"
- }
- }
- },
- "ToscaConceptIdentifier": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "version": {
- "type": "string"
- }
- }
- }
- }
-}
diff --git a/docs/pap/swagger/policy-deploy-pap.json b/docs/pap/swagger/policy-deploy-pap.json
deleted file mode 100644
index d003af85..00000000
--- a/docs/pap/swagger/policy-deploy-pap.json
+++ /dev/null
@@ -1,118 +0,0 @@
-{
- "swagger" : "2.0",
- "basePath" : "/",
- "tags" : [ {
- "name" : "Deploy Policy"
- } ],
- "schemes" : [ "http", "https" ],
- "consumes" : [ "application/json" ],
- "produces" : [ "application/json" ],
- "paths" : {
- "/policy/pap/v1/pdps/policies" : {
- "post" : {
- "tags" : [ "Deploy Policy" ],
- "summary" : "Deploy or update PDP Policies",
- "description" : "Deploys or updates PDP Policies, returning optional error details",
- "operationId" : "deployPolicies",
- "produces" : [ "application/json" ],
- "parameters" : [ {
- "name" : "X-ONAP-RequestID",
- "in" : "header",
- "description" : "RequestID for http transaction",
- "required" : false,
- "type" : "string",
- "format" : "uuid"
- }, {
- "in" : "body",
- "name" : "body",
- "description" : "PDP Policies; only the name is required",
- "required" : true,
- "schema" : {
- "$ref" : "#/definitions/PdpDeployPolicies"
- }
- } ],
- "responses" : {
- "202" : {
- "description" : "operation accepted",
- "headers" : {
- "X-MinorVersion" : {
- "type" : "string",
- "description" : "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion" : {
- "type" : "string",
- "description" : "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion" : {
- "type" : "string",
- "description" : "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID" : {
- "type" : "string",
- "format" : "uuid",
- "description" : "Used to track REST transactions for logging purpose"
- }
- },
- "schema" : {
- "$ref" : "#/definitions/PdpGroupDeployResponse"
- }
- },
- "401" : {
- "description" : "Authentication Error"
- },
- "403" : {
- "description" : "Authorization Error"
- },
- "500" : {
- "description" : "Internal Server Error"
- }
- },
- "security" : [ {
- "basicAuth" : [ ]
- } ],
- "x-interface info" : {
- "api-version" : "1.0.0",
- "last-mod-release" : "Dublin"
- }
- }
- }
- },
- "securityDefinitions" : {
- "basicAuth" : {
- "description" : "",
- "type" : "basic"
- }
- },
- "definitions" : {
- "PdpGroupDeployResponse" : {
- "type" : "object",
- "properties" : {
- "errorDetails" : {
- "type" : "string"
- }
- }
- },
- "PdpDeployPolicies" : {
- "type" : "object",
- "properties" : {
- "policies" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/ToscaPolicyIdentifierOptVersion"
- }
- }
- }
- },
- "ToscaPolicyIdentifierOptVersion" : {
- "type" : "object",
- "properties" : {
- "name" : {
- "type" : "string"
- },
- "version" : {
- "type" : "string"
- }
- }
- }
- }
-}
diff --git a/docs/pap/swagger/policy-status-pap.json b/docs/pap/swagger/policy-status-pap.json
deleted file mode 100644
index db60220c..00000000
--- a/docs/pap/swagger/policy-status-pap.json
+++ /dev/null
@@ -1,411 +0,0 @@
-{
- "swagger": "2.0",
- "info": {
- "title": "The APIs listed here are used to fetch status of policies in PdpGroups",
- "version": "v1"
- },
- "basePath": "/",
- "tags": [
- {
- "name": "Policy Status"
- }
- ],
- "schemes": [
- "http",
- "https"
- ],
- "consumes": [
- "application/json",
- "application/yaml"
- ],
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "paths": {
- "/policy/pap/v1/policies/status": {
- "get": {
- "tags": [
- "Policy Status"
- ],
- "summary": "Queries status of policies in all PdpGroups",
- "description": "Queries status of policies in all PdpGroups, returning status of policies in all the PDPs belonging to all PdpGroups",
- "operationId": "queryAllPolicies",
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "parameters": [
- {
- "name": "X-ONAP-RequestID",
- "in": "header",
- "description": "RequestID for http transaction",
- "required": false,
- "type": "string",
- "format": "uuid"
- }
- ],
- "responses": {
- "200": {
- "description": "successful operation",
- "headers": {
- "X-MinorVersion": {
- "type": "string",
- "description": "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion": {
- "type": "string",
- "description": "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion": {
- "type": "string",
- "description": "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID": {
- "type": "string",
- "format": "uuid",
- "description": "Used to track REST transactions for logging purpose"
- }
- },
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/PdpPolicyStatus"
- }
- }
- },
- "401": {
- "description": "Authentication Error"
- },
- "403": {
- "description": "Authorization Error"
- },
- "500": {
- "description": "Internal Server Error"
- }
- },
- "security": [
- {
- "basicAuth": []
- }
- ],
- "x-interface info": {
- "api-version": "1.0.0",
- "last-mod-release": "Honolulu"
- }
- }
- },
- "/policy/pap/v1/policies/status/{pdpGroupName}": {
- "get": {
- "tags": [
- "Policy Status"
- ],
- "summary": "Queries status of policies in a specific PdpGroup",
- "description": "Queries status of policies in a specific PdpGroup, returning status of policies in all the PDPs belonging to the PdpGroup",
- "operationId": "queryAllPoliciesInPdpGroup",
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "parameters": [
- {
- "name": "pdpGroupName",
- "in": "path",
- "description": "Name of the PdpGroup",
- "required": true,
- "type": "string"
- },
- {
- "name": "X-ONAP-RequestID",
- "in": "header",
- "description": "RequestID for http transaction",
- "required": false,
- "type": "string",
- "format": "uuid"
- }
- ],
- "responses": {
- "200": {
- "description": "successful operation",
- "headers": {
- "X-MinorVersion": {
- "type": "string",
- "description": "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion": {
- "type": "string",
- "description": "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion": {
- "type": "string",
- "description": "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID": {
- "type": "string",
- "format": "uuid",
- "description": "Used to track REST transactions for logging purpose"
- }
- },
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/PdpPolicyStatus"
- }
- }
- },
- "401": {
- "description": "Authentication Error"
- },
- "403": {
- "description": "Authorization Error"
- },
- "404": {
- "description": "Resource not found"
- },
- "500": {
- "description": "Internal Server Error"
- }
- },
- "security": [
- {
- "basicAuth": []
- }
- ],
- "x-interface info": {
- "api-version": "1.0.0",
- "last-mod-release": "Honolulu"
- }
- }
- },
- "/policy/pap/v1/policies/status/{pdpGroupName}/{policyName}": {
- "get": {
- "tags": [
- "Policy Status"
- ],
- "summary": "Queries status of all versions of a specific policy in a specific PdpGroup",
- "description": "Queries status of all versions of a specific policy in a specific PdpGroup, returning status of all versions of the policy in the PDPs belonging to the PdpGroup",
- "operationId": "queryAllVersionPolicy",
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "parameters": [
- {
- "name": "pdpGroupName",
- "in": "path",
- "description": "Name of the PdpGroup",
- "required": true,
- "type": "string"
- },
- {
- "name": "policyName",
- "in": "path",
- "description": "Name of the Policy",
- "required": true,
- "type": "string"
- },
- {
- "name": "X-ONAP-RequestID",
- "in": "header",
- "description": "RequestID for http transaction",
- "required": false,
- "type": "string",
- "format": "uuid"
- }
- ],
- "responses": {
- "200": {
- "description": "successful operation",
- "headers": {
- "X-MinorVersion": {
- "type": "string",
- "description": "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion": {
- "type": "string",
- "description": "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion": {
- "type": "string",
- "description": "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID": {
- "type": "string",
- "format": "uuid",
- "description": "Used to track REST transactions for logging purpose"
- }
- },
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/PdpPolicyStatus"
- }
- }
- },
- "401": {
- "description": "Authentication Error"
- },
- "403": {
- "description": "Authorization Error"
- },
- "404": {
- "description": "Resource not found"
- },
- "500": {
- "description": "Internal Server Error"
- }
- },
- "security": [
- {
- "basicAuth": []
- }
- ],
- "x-interface info": {
- "api-version": "1.0.0",
- "last-mod-release": "Honolulu"
- }
- }
- },
- "/policy/pap/v1/policies/status/{pdpGroupName}/{policyName}/{policyVersion}": {
- "get": {
- "tags": [
- "Policy Status"
- ],
- "summary": "Queries status of a specific version of a specific policy in a specific PdpGroup",
- "description": "Queries status of a specific version of a specific policy in a specific PdpGroup, returning status of the policy in the PDPs belonging to the PdpGroup",
- "operationId": "querySpecificVersionPolicy",
- "produces": [
- "application/json",
- "application/yaml"
- ],
- "parameters": [
- {
- "name": "pdpGroupName",
- "in": "path",
- "description": "Name of the PdpGroup",
- "required": true,
- "type": "string"
- },
- {
- "name": "policyName",
- "in": "path",
- "description": "Name of the Policy",
- "required": true,
- "type": "string"
- },
- {
- "name": "policyVersion",
- "in": "path",
- "description": "Version of the Policy",
- "required": true,
- "type": "string"
- },
- {
- "name": "X-ONAP-RequestID",
- "in": "header",
- "description": "RequestID for http transaction",
- "required": false,
- "type": "string",
- "format": "uuid"
- }
- ],
- "responses": {
- "200": {
- "description": "successful operation",
- "headers": {
- "X-MinorVersion": {
- "type": "string",
- "description": "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion": {
- "type": "string",
- "description": "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion": {
- "type": "string",
- "description": "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID": {
- "type": "string",
- "format": "uuid",
- "description": "Used to track REST transactions for logging purpose"
- }
- },
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/PdpPolicyStatus"
- }
- }
- },
- "401": {
- "description": "Authentication Error"
- },
- "403": {
- "description": "Authorization Error"
- },
- "404": {
- "description": "Resource not found"
- },
- "500": {
- "description": "Internal Server Error"
- }
- },
- "security": [
- {
- "basicAuth": []
- }
- ],
- "x-interface info": {
- "api-version": "1.0.0",
- "last-mod-release": "Honolulu"
- }
- }
- }
- },
- "securityDefinitions": {
- "basicAuth": {
- "description": "",
- "type": "basic"
- }
- },
- "definitions": {
- "PdpPolicyStatus": {
- "type": "object",
- "properties": {
- "pdpGroup": {
- "type": "string"
- },
- "pdpType": {
- "type": "string"
- },
- "pdpId": {
- "type": "string"
- },
- "policy": {
- "$ref": "#/definitions/ToscaConceptIdentifier"
- },
- "policyType": {
- "$ref": "#/definitions/ToscaConceptIdentifier"
- },
- "deploy": {
- "type": "boolean"
- },
- "state": {
- "type": "string"
- }
- }
- },
- "ToscaConceptIdentifier": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "version": {
- "type": "string"
- }
- }
- }
- }
-}
diff --git a/docs/pap/swagger/policy-undeploy-pap.json b/docs/pap/swagger/policy-undeploy-pap.json
deleted file mode 100644
index de793668..00000000
--- a/docs/pap/swagger/policy-undeploy-pap.json
+++ /dev/null
@@ -1,166 +0,0 @@
-{
- "swagger" : "2.0",
- "basePath" : "/",
- "tags" : [ {
- "name" : "Undeploy Policy"
- } ],
- "schemes" : [ "http", "https" ],
- "consumes" : [ "application/json" ],
- "produces" : [ "application/json" ],
- "paths" : {
- "/policy/pap/v1/pdps/policies/{name}" : {
- "delete" : {
- "tags" : [ "Undeploy Policy" ],
- "summary" : "Undeploy a PDP Policy from PDPs",
- "description" : "Undeploys the latest version of a policy from the PDPs, returning optional error details",
- "operationId" : "deletePolicy",
- "produces" : [ "application/json" ],
- "parameters" : [ {
- "name" : "X-ONAP-RequestID",
- "in" : "header",
- "description" : "RequestID for http transaction",
- "required" : false,
- "type" : "string",
- "format" : "uuid"
- }, {
- "name" : "name",
- "in" : "path",
- "description" : "PDP Policy Name",
- "required" : true,
- "type" : "string"
- } ],
- "responses" : {
- "202" : {
- "description" : "operation accepted",
- "headers" : {
- "X-MinorVersion" : {
- "type" : "string",
- "description" : "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion" : {
- "type" : "string",
- "description" : "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion" : {
- "type" : "string",
- "description" : "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID" : {
- "type" : "string",
- "format" : "uuid",
- "description" : "Used to track REST transactions for logging purpose"
- }
- },
- "schema" : {
- "$ref" : "#/definitions/PdpGroupDeleteResponse"
- }
- },
- "401" : {
- "description" : "Authentication Error"
- },
- "403" : {
- "description" : "Authorization Error"
- },
- "500" : {
- "description" : "Internal Server Error"
- }
- },
- "security" : [ {
- "basicAuth" : [ ]
- } ],
- "x-interface info" : {
- "api-version" : "1.0.0",
- "last-mod-release" : "Dublin"
- }
- }
- },
- "/policy/pap/v1/pdps/policies/{name}/versions/{version}" : {
- "delete" : {
- "tags" : [ "Undeploy Policy" ],
- "summary" : "Undeploy version of a PDP Policy from PDPs",
- "description" : "Undeploys a specific version of a policy from the PDPs, returning optional error details",
- "operationId" : "deletePolicyVersion",
- "produces" : [ "application/json" ],
- "parameters" : [ {
- "name" : "X-ONAP-RequestID",
- "in" : "header",
- "description" : "RequestID for http transaction",
- "required" : false,
- "type" : "string",
- "format" : "uuid"
- }, {
- "name" : "name",
- "in" : "path",
- "description" : "PDP Policy Name",
- "required" : true,
- "type" : "string"
- }, {
- "name" : "version",
- "in" : "path",
- "description" : "PDP Policy Version",
- "required" : true,
- "type" : "string"
- } ],
- "responses" : {
- "202" : {
- "description" : "operation accepted",
- "headers" : {
- "X-MinorVersion" : {
- "type" : "string",
- "description" : "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion" : {
- "type" : "string",
- "description" : "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion" : {
- "type" : "string",
- "description" : "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID" : {
- "type" : "string",
- "format" : "uuid",
- "description" : "Used to track REST transactions for logging purpose"
- }
- },
- "schema" : {
- "$ref" : "#/definitions/PdpGroupDeleteResponse"
- }
- },
- "401" : {
- "description" : "Authentication Error"
- },
- "403" : {
- "description" : "Authorization Error"
- },
- "500" : {
- "description" : "Internal Server Error"
- }
- },
- "security" : [ {
- "basicAuth" : [ ]
- } ],
- "x-interface info" : {
- "api-version" : "1.0.0",
- "last-mod-release" : "Dublin"
- }
- }
- }
- },
- "securityDefinitions" : {
- "basicAuth" : {
- "description" : "",
- "type" : "basic"
- }
- },
- "definitions" : {
- "PdpGroupDeleteResponse" : {
- "type" : "object",
- "properties" : {
- "errorDetails" : {
- "type" : "string"
- }
- }
- }
- }
-}
diff --git a/docs/pap/swagger/state-change-pap.json b/docs/pap/swagger/state-change-pap.json
deleted file mode 100644
index d5ca9a08..00000000
--- a/docs/pap/swagger/state-change-pap.json
+++ /dev/null
@@ -1,101 +0,0 @@
-{
- "swagger" : "2.0",
- "basePath" : "/",
- "tags" : [ {
- "name" : "PdpGroup State Change"
- } ],
- "schemes" : [ "http", "https" ],
- "consumes" : [ "application/json" ],
- "produces" : [ "application/json" ],
- "paths" : {
- "/policy/pap/v1/pdps/groups/{name}" : {
- "put" : {
- "tags" : [ "PdpGroup State Change" ],
- "summary" : "Change state of a PDP Group",
- "description" : "Changes state of PDP Group, returning optional error details",
- "operationId" : "changeGroupState",
- "produces" : [ "application/json" ],
- "parameters" : [ {
- "name" : "X-ONAP-RequestID",
- "in" : "header",
- "description" : "RequestID for http transaction",
- "required" : false,
- "type" : "string",
- "format" : "uuid"
- }, {
- "name" : "name",
- "in" : "path",
- "description" : "PDP Group Name",
- "required" : true,
- "type" : "string"
- }, {
- "name" : "state",
- "in" : "query",
- "description" : "PDP Group State",
- "required" : true,
- "type" : "string",
- "enum" : [ "PASSIVE", "SAFE", "TEST", "ACTIVE", "TERMINATED" ]
- } ],
- "responses" : {
- "200" : {
- "description" : "successful operation",
- "headers" : {
- "X-MinorVersion" : {
- "type" : "string",
- "description" : "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
- },
- "X-PatchVersion" : {
- "type" : "string",
- "description" : "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
- },
- "X-LatestVersion" : {
- "type" : "string",
- "description" : "Used only to communicate an API's latest version"
- },
- "X-ONAP-RequestID" : {
- "type" : "string",
- "format" : "uuid",
- "description" : "Used to track REST transactions for logging purpose"
- }
- },
- "schema" : {
- "$ref" : "#/definitions/PdpGroupStateChangeResponse"
- }
- },
- "401" : {
- "description" : "Authentication Error"
- },
- "403" : {
- "description" : "Authorization Error"
- },
- "500" : {
- "description" : "Internal Server Error"
- }
- },
- "security" : [ {
- "basicAuth" : [ ]
- } ],
- "x-interface info" : {
- "api-version" : "1.0.0",
- "last-mod-release" : "Dublin"
- }
- }
- }
- },
- "securityDefinitions" : {
- "basicAuth" : {
- "description" : "",
- "type" : "basic"
- }
- },
- "definitions" : {
- "PdpGroupStateChangeResponse" : {
- "type" : "object",
- "properties" : {
- "errorDetails" : {
- "type" : "string"
- }
- }
- }
- }
-}
diff --git a/docs/pap/swagger/statistics-pap.json b/docs/pap/swagger/statistics-pap.json
deleted file mode 100644
index 390fe1a0..00000000
--- a/docs/pap/swagger/statistics-pap.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "swagger" : "2.0",
- "basePath" : "/",
- "tags" : [ {
- "name" : "Statistics"
- } ],
- "schemes" : [ "http", "https" ],
- "consumes" : [ "application/json" ],
- "produces" : [ "application/json" ],
- "paths" : {
- "/policy/pap/v1/statistics" : {
- "get" : {
- "tags" : [ "Statistics" ],
- "summary" : "Fetch current statistics",
- "description" : "Returns current statistics of the Policy Administration component",
- "operationId" : "statistics",
- "produces" : [ "application/json" ],
- "parameters" : [ ],
- "responses" : {
- "200" : {
- "description" : "successful operation",
- "schema" : {
- "$ref" : "#/definitions/StatisticsReport"
- }
- },
- "401" : {
- "description" : "Authentication Error"
- },
- "403" : {
- "description" : "Authorization Error"
- },
- "500" : {
- "description" : "Internal Server Error"
- }
- },
- "security" : [ {
- "basicAuth" : [ ]
- } ]
- }
- }
- },
- "securityDefinitions" : {
- "basicAuth" : {
- "description" : "",
- "type" : "basic"
- }
- },
- "definitions" : {
- "StatisticsReport" : {
- "type" : "object",
- "properties" : {
- "code" : {
- "type" : "integer",
- "format" : "int32"
- },
- "totalPdpCount" : {
- "type" : "integer",
- "format" : "int64"
- },
- "totalPdpGroupCount" : {
- "type" : "integer",
- "format" : "int64"
- },
- "totalPolicyDeployCount" : {
- "type" : "integer",
- "format" : "int64"
- },
- "policyDeploySuccessCount" : {
- "type" : "integer",
- "format" : "int64"
- },
- "policyDeployFailureCount" : {
- "type" : "integer",
- "format" : "int64"
- },
- "totalPolicyDownloadCount" : {
- "type" : "integer",
- "format" : "int64"
- },
- "policyDownloadSuccessCount" : {
- "type" : "integer",
- "format" : "int64"
- },
- "policyDownloadFailureCount" : {
- "type" : "integer",
- "format" : "int64"
- }
- }
- }
- }
-}