aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/openapi.yaml23
-rw-r--r--api/register-handlers.go3
-rw-r--r--api/register-handlers_test.go3
3 files changed, 23 insertions, 6 deletions
diff --git a/api/openapi.yaml b/api/openapi.yaml
index aaff2b9..a9b8191 100644
--- a/api/openapi.yaml
+++ b/api/openapi.yaml
@@ -1,6 +1,6 @@
#
# ========================LICENSE_START=================================
-# Copyright (C) 2024: Deutsche Telecom
+# Copyright (C) 2024: Deutsche Telekom
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -13,13 +13,14 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+# SPDX-License-Identifier: Apache-2.0
# ========================LICENSE_END===================================
#
openapi: 3.0.3
info:
title: "Policy OPA PDP Documentation"
description: Policy OPA PDP Service
- version: 1.0.0
+ version: 1.0.2
x-component: Policy Framework
x-planned-retirement-date: tbd
contact:
@@ -175,7 +176,7 @@ paths:
tags:
- Statistics
summary: Fetch current statistics
- description: Provides current statistics of the Policy OPA PDP component
+ description: Provides current statistics of the Policy OPA PDP component
operationId: statistics
parameters:
- name: X-ONAP-RequestID
@@ -296,6 +297,10 @@ components:
description: "Time offset in hours and minutes, e.g., '+02:00' or '-05:00'"
policyName:
type: string
+ policyFilter:
+ type: array
+ items:
+ type: string
input:
type: object
additionalProperties: true
@@ -329,8 +334,12 @@ components:
- PERMIT
- DENY
- INDETERMINATE
+ - NOTAPPLICABLE
policyName:
type: string
+ output:
+ type: object
+ additionalProperties: true
StatisticsReport:
type: object
properties:
@@ -367,8 +376,14 @@ components:
indeterminantDecisionsCount:
type: integer
format: int64
+ querySuccessCount:
+ type: integer
+ format: int64
+ queryFailureCount:
+ type: integer
+ format: int64
securitySchemes:
basicAuth:
type: http
description: ""
- scheme: basic \ No newline at end of file
+ scheme: basic
diff --git a/api/register-handlers.go b/api/register-handlers.go
index 37028d2..4b21314 100644
--- a/api/register-handlers.go
+++ b/api/register-handlers.go
@@ -1,6 +1,6 @@
// -
// ========================LICENSE_START=================================
-// Copyright (C) 2024: Deutsche Telecom
+// Copyright (C) 2024: Deutsche Telekom
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -13,6 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+// SPDX-License-Identifier: Apache-2.0
// ========================LICENSE_END===================================
// Package api provides HTTP handlers for the policy-opa-pdp service.
diff --git a/api/register-handlers_test.go b/api/register-handlers_test.go
index 72624f8..801cb0e 100644
--- a/api/register-handlers_test.go
+++ b/api/register-handlers_test.go
@@ -1,6 +1,6 @@
// -
// ========================LICENSE_START=================================
-// Copyright (C) 2024: Deutsche Telecom
+// Copyright (C) 2024: Deutsche Telekom
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -13,6 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+// SPDX-License-Identifier: Apache-2.0
// ========================LICENSE_END===================================
//