# ============LICENSE_START======================================================= # Copyright © 2021 AT&T Intellectual Property. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # 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: O-RAN OAM Adopter PM Manager description: API for O-RAN OAM Adopter PM Manager service. version: "1.0.0" license: name: "Apache 2.0" url: "http://www.apache.org/licenses/LICENSE-2.0" servers: - url: https://example.io/v1 security: - BasicAuth: [] paths: /: get: tags: - controller summary: Read all adapters host address description: Returns a list of adapters host address operationId: getAllAdapters responses: '200': description: Successfully returned a list of adapters host address content: application/json: schema: type: array items: type: string '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' /adapter/{host}: delete: tags: - controller description: Delete an adapter by host address operationId: removeAdapter parameters: - name: host in: path required: true schema: type: string responses: '200': $ref: '#/components/responses/Success' '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' /adapter: post: tags: - controller description: create an adapter instance operationId: addAdapter requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/Adapter' responses: '200': $ref: '#/components/responses/Success' '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' components: schemas: ErrorMessage: type: object title: Error properties: status: type: string message: type: string Adapter: type: object properties: host: type: string mechId: type: object properties: username: type: string password: type: string required: - username - password required: - host - mechId responses: Success: description: Succesfully excecuted BadRequest: description: Invalid request content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' Unauthorized: description: Unhautorized request content: application/json: schema: $ref: '#/components/schemas/ErrorMessage' NotFound: description: Not Found content: application/json: schema: $ref: '#/components/schemas/ErrorMessage'