From 069b469a3990f30b3a0012f3d9fde535ebf3149f Mon Sep 17 00:00:00 2001 From: JohnKeeney Date: Thu, 12 May 2022 22:15:14 +0100 Subject: Documentation updates Updated RTD documentation, and fixed some typos in java files conatining annotations used to generate OpenAPI (json, yaml, html) specs & docs. Issue-ID: CCSDK-3616 Change-Id: Iefa905f4c0f13cb013872d4858232695fc107927 Signed-off-by: JohnKeeney --- .../ccsdk/oran/a1policymanagementservice/SwaggerConfig.java | 10 +++++----- .../controllers/v2/PolicyTypeInfo.java | 2 +- .../controllers/v2/RicRepositoryController.java | 4 ++-- .../controllers/v2/ServiceController.java | 2 +- .../controllers/v2/ServiceRegistrationInfo.java | 8 ++++---- .../controllers/v2/RappSimulatorController.java | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) (limited to 'a1-policy-management/src') diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java index b262af07..774b2363 100644 --- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java +++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java @@ -52,15 +52,15 @@ public class SwaggerConfig { private static final String H3 = "

"; private static final String H3_END = "

"; - public static final String API_TITLE = "A1 Policy management service"; + public static final String API_TITLE = "A1 Policy Management Service"; static final String DESCRIPTION = "

General

" + // - "

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:

" + "

The O-RAN Non-RT RIC Policy Management Service provides a REST API for management of A1 policies.
The main tasks of the service are:

" + // "" + // "

APIs provided by the service

" + // H3 + PolicyController.API_NAME + H3_END + // @@ -75,14 +75,14 @@ public class SwaggerConfig { "

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.

" + "

These are endpoints that are invoked by this service. The callbacks are registered 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.

"; + "

API used for registering services that uses PMS. Each A1 policy is owned by a service. PMS can supervise each registered service and will automatically remove policies for unavailable services.

"; public static final String VERSION = "1.1.0"; } diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/PolicyTypeInfo.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/PolicyTypeInfo.java index 7449e94d..b619e44b 100644 --- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/PolicyTypeInfo.java +++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/PolicyTypeInfo.java @@ -33,7 +33,7 @@ import org.immutables.gson.Gson; @Schema(name = "policytype_v2", description = "Policy type") public class PolicyTypeInfo { - @Schema(description = "Policy type json scema. The schema is a json object following http://json-schema.org/draft-07/schema") + @Schema(description = "Policy type json schema. The schema is a json object following http://json-schema.org/draft-07/schema") @SerializedName("policy_schema") @JsonProperty("policy_schema") public final Object schema; diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/RicRepositoryController.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/RicRepositoryController.java index def388ac..9e2644ad 100644 --- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/RicRepositoryController.java +++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/RicRepositoryController.java @@ -68,8 +68,8 @@ public class RicRepositoryController { private static final String GET_RIC_BRIEF = "Returns info for one Near-RT RIC"; private static final String GET_RIC_DETAILS = - "Either a Near-RT RIC identity or a Mananged Element identity can be specified.
" // - + "The intention with Mananged Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU)."; + "Either a Near-RT RIC identity or a Managed Element identity can be specified.
" // + + "The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU)."; /** * Example: http://localhost:8081/v2/rics/ric?managed_element_id=kista_1 diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ServiceController.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ServiceController.java index 7f342150..faa152ca 100644 --- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ServiceController.java +++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ServiceController.java @@ -178,7 +178,7 @@ public class ServiceController { } @Operation(summary = "Heartbeat indicates that the service is running", - description = "A registerred service must call this in regular intervals to indicate that it is in operation. Absence of this call will lead to that the service will be deregisterred and all its policies are removed.") + description = "A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke this operation before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. (This timeout can be set or disabled when each service is initially registered)") @ApiResponses(value = { // @ApiResponse(responseCode = "200", description = "Service supervision timer refreshed, OK"), // @ApiResponse(responseCode = "404", description = "The service is not found, needs re-registration", diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ServiceRegistrationInfo.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ServiceRegistrationInfo.java index 16f1f163..17277c9a 100644 --- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ServiceRegistrationInfo.java +++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ServiceRegistrationInfo.java @@ -36,11 +36,11 @@ public class ServiceRegistrationInfo { @JsonProperty("service_id") public String serviceId = ""; - @Schema(description = "keep alive interval for the service. This is a heartbeat supervision of the service, " - + "which in regular intevals must invoke a 'keepalive' REST call. " - + "When a service does not invoke this call within the given time, it is considered unavailble. " + @Schema(description = "keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. " + + "If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. " + + "When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. " + "An unavailable service will be automatically deregistered and its policies will be deleted. " - + "Value 0 means no timeout supervision.") + + "Value 0 means timeout supervision is disabled.") @SerializedName("keep_alive_interval_seconds") @JsonProperty("keep_alive_interval_seconds") public long keepAliveIntervalSeconds = 0; diff --git a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/RappSimulatorController.java b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/RappSimulatorController.java index d9c724fc..371bd959 100644 --- a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/RappSimulatorController.java +++ b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/RappSimulatorController.java @@ -78,7 +78,7 @@ public class RappSimulatorController { @Getter private TestResults testResults = new TestResults(); - private static final String CALLBACK_DESCRIPTION = "The URL to this call is registerred at Service registration."; + private static final String CALLBACK_DESCRIPTION = "The URL to this call is registered at Service registration."; @PostMapping(path = SERVICE_CALLBACK_URL, produces = MediaType.APPLICATION_JSON_VALUE) @Operation(summary = "Callback for Near-RT RIC status", description = CALLBACK_DESCRIPTION) -- cgit 1.2.3-korg