diff options
author | 2025-02-27 12:04:25 +0000 | |
---|---|---|
committer | 2025-02-27 12:04:25 +0000 | |
commit | 2aa0e284f3ee7123e2ec288de5b6c6b69f0a1b15 (patch) | |
tree | 454c8509b2e5ddd20046d56c0c58e4628503d4e5 | |
parent | e8ab0a0ba0a60c068f90358b00e6970e83b96701 (diff) | |
parent | 393b1dd112e000bf33591d568c7bba40e1c9332f (diff) |
Merge "Open api spec lint fixes"
-rw-r--r-- | a1-policy-management/api/offeredapis/swagger/pms-api-v3.yaml | 88 |
1 files changed, 16 insertions, 72 deletions
diff --git a/a1-policy-management/api/offeredapis/swagger/pms-api-v3.yaml b/a1-policy-management/api/offeredapis/swagger/pms-api-v3.yaml index 6d61dfe3..1ea8b486 100644 --- a/a1-policy-management/api/offeredapis/swagger/pms-api-v3.yaml +++ b/a1-policy-management/api/offeredapis/swagger/pms-api-v3.yaml @@ -84,6 +84,8 @@ paths: status_info: $ref: '#/components/examples/StatusInfo' description: OK- Service is living Ok + "404": + $ref: '#/components/responses/404' description: Returns status and statistics of this service tags: - Health Check @@ -363,7 +365,7 @@ paths: example: application/json responses: '204': - description: 'The A1 policy was deleted' + description: 'No Content' '400': $ref: '#/components/responses/400' '401': @@ -571,7 +573,7 @@ paths: $ref: '#/components/schemas/PolicyObjectInformation' responses: '201': - description: 'Success case 201 created' + description: 'Created' content: application/json: schema: @@ -582,6 +584,12 @@ paths: required: true schema: type: string + Content-Type: + description: 'Media Type of the response' + schema: + type: string + example: application/json + '400': $ref: '#/components/responses/400' '401': @@ -640,7 +648,7 @@ paths: responses: "200": content: - '*/*': + 'application/json': schema: $ref: '#/components/schemas/void' description: OK - Configuration updated @@ -681,7 +689,7 @@ paths: responses: "200": content: - '*/*': + 'application/json': schema: type: object description: "OK - Service supervision timer refreshed, OK" @@ -742,13 +750,13 @@ paths: responses: "200": content: - '*/*': + 'application/json': schema: type: object description: OK - Service updated "201": content: - '*/*': + 'application/json': schema: type: object description: Created - Service created @@ -800,7 +808,7 @@ paths: responses: "204": content: - '*/*': + 'application/json': schema: type: object description: No Content - Service unregistered @@ -823,13 +831,6 @@ components: serviceId: serviceId keepAliveIntervalSeconds: 0 timeSinceLastActivitySeconds: 6 - PolicyStatusInfo: - description: Status for one A1-P Policy - value: - lastModified: last_modified - status: - value: - status: status StatusInfo: value: status: status @@ -1074,17 +1075,6 @@ components: description: status text type: string type: object - AuthorizationResult: - description: Result of authorization - example: - result: true - properties: - result: - description: "If true, the access is granted" - type: boolean - required: - - result - type: object RicInfo: description: Information for a Near-RT RIC properties: @@ -1134,16 +1124,6 @@ components: required: - serviceId type: object - PolicyStatusInfo: - description: Status for one A1-P Policy - properties: - lastModified: - description: "timestamp, last modification time" - type: string - status: - description: the Policy status - type: object - type: object ServiceStatus: properties: callbackUrl: @@ -1170,35 +1150,6 @@ components: $ref: '#/components/schemas/RicInfo' type: array type: object - input: - description: input - properties: - accessType: - description: Access type - enum: - - READ - - WRITE - - DELETE - type: string - authToken: - description: Authorization token - type: string - policyTypeId: - description: Policy type identifier - type: string - required: - - accessType - - authToken - - policyTypeId - type: object - PolicyAuthorization: - description: Authorization request for A1 policy requests - properties: - input: - $ref: '#/components/schemas/input' - required: - - input - type: object NearRtRicId: description: Identity of the policy type: string @@ -1241,13 +1192,6 @@ components: - eventType - ricId type: object - Link: - properties: - templated: - type: boolean - href: - type: string - type: object ProblemDetails: description: >- A problem detail to carry details in an HTTP response according to RFC @@ -1333,7 +1277,7 @@ components: schema: $ref: '#/components/schemas/ProblemDetails' '429': - description: Too Many Request + description: Too Many Requests content: application/problem+json: schema: |