/*- * ========================LICENSE_START================================= * ONAP : ccsdk oran * ====================================================================== * Copyright (C) 2019-2020 Nordix Foundation. 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. * ========================LICENSE_END=================================== */ package org.onap.ccsdk.oran.a1policymanagementservice; import io.swagger.v3.oas.annotations.OpenAPIDefinition; import io.swagger.v3.oas.annotations.info.Info; import io.swagger.v3.oas.annotations.info.License; import org.onap.ccsdk.oran.a1policymanagementservice.controllers.v2.ConfigurationController; import org.onap.ccsdk.oran.a1policymanagementservice.controllers.v2.Consts; import org.onap.ccsdk.oran.a1policymanagementservice.controllers.v2.PolicyController; import org.onap.ccsdk.oran.a1policymanagementservice.controllers.v2.RicRepositoryController; import org.onap.ccsdk.oran.a1policymanagementservice.controllers.v2.ServiceController; import org.onap.ccsdk.oran.a1policymanagementservice.controllers.v2.StatusController; /** * Swagger configuration class that uses swagger2 documentation type and scans * all the controllers under * org.onap.ccsdk.oran.a1policymanagementservice.controllers package. To access * the swagger gui go to http://ip:port/swagger-ui.html * */ @OpenAPIDefinition( // info = @Info(title = SwaggerConfig.API_TITLE, // version = SwaggerConfig.VERSION, // description = SwaggerConfig.DESCRIPTION, // license = @License( name = "Copyright (C) 2020-2022 Nordix Foundation. Licensed under the Apache License.", // url = "http://www.apache.org/licenses/LICENSE-2.0")) // ) public class SwaggerConfig { private SwaggerConfig() {} private static final String H3 = "
The O-RAN Non-RT RIC Policy Management Service provides a REST API for management of A1 policices.
The main tasks of the service are:
This is an API for management of A1 Policies.
" + // "API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.
" + // H3 + Consts.V2_API_SERVICE_CALLBACKS_NAME + H3_END + // "These are endpoints that are invoked by this service. The callbacks are registerred in this service at service registration.
" + // H3 + RicRepositoryController.API_NAME + H3_END + // "This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.
" + H3 + StatusController.API_NAME + H3_END + // "API used for supervision of the PMS component.
" + // H3 + ServiceController.API_NAME + H3_END + // "API used for registerring services that uses PMS. Each A1 policy is owned by a service. PMS can supervise each registerred service and will automatically remove policies for unavailable services.
"; public static final String VERSION = "1.1.0"; }