diff --git a/indexer-core/src/main/java/org/opengroup/osdu/indexer/api/ReindexApi.java b/indexer-core/src/main/java/org/opengroup/osdu/indexer/api/ReindexApi.java index 09c42d0c86608537cd8bf05c1a64e5b6009b1bb4..625442ac4daa0625033b9c2111a0a00799259011 100644 --- a/indexer-core/src/main/java/org/opengroup/osdu/indexer/api/ReindexApi.java +++ b/indexer-core/src/main/java/org/opengroup/osdu/indexer/api/ReindexApi.java @@ -64,7 +64,7 @@ public class ReindexApi { @Inject private AuditLogger auditLogger; - @Operation(summary = "${reindexApi.reindex.summary}", description = "${reindexApi.reindex.description}", + @Operation(summary = "${reindexApi.reindexRecords.summary}", description = "${reindexApi.reindexRecords.description}", security = {@SecurityRequirement(name = "Authorization")}, tags = { "reindex-api" }) @ApiResponses(value = { @ApiResponse(responseCode = "202", description = "Accepted"), diff --git a/indexer-core/src/main/java/org/opengroup/osdu/indexer/model/ReindexRecordsRequest.java b/indexer-core/src/main/java/org/opengroup/osdu/indexer/model/ReindexRecordsRequest.java index e0750605336760e68dfe91cdd9fbee0821cd72d8..d11570ec1f0e5402ad8fbb0b3bba2603ccfe391a 100644 --- a/indexer-core/src/main/java/org/opengroup/osdu/indexer/model/ReindexRecordsRequest.java +++ b/indexer-core/src/main/java/org/opengroup/osdu/indexer/model/ReindexRecordsRequest.java @@ -1,3 +1,17 @@ +// Copyright 2023, SLB +// +// 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. + package org.opengroup.osdu.indexer.model; import lombok.AllArgsConstructor; diff --git a/indexer-core/src/main/java/org/opengroup/osdu/indexer/model/ReindexRecordsResponse.java b/indexer-core/src/main/java/org/opengroup/osdu/indexer/model/ReindexRecordsResponse.java index 6f96f96108f6232d07eb9fea1c82837c662f9427..b0f4eee4ccc29fae4465f04117cf12fea5afb253 100644 --- a/indexer-core/src/main/java/org/opengroup/osdu/indexer/model/ReindexRecordsResponse.java +++ b/indexer-core/src/main/java/org/opengroup/osdu/indexer/model/ReindexRecordsResponse.java @@ -1,3 +1,17 @@ +// Copyright 2023, SLB +// +// 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. + package org.opengroup.osdu.indexer.model; import lombok.Builder; diff --git a/indexer-core/src/main/resources/swagger.properties b/indexer-core/src/main/resources/swagger.properties index 12506ebeb2e9aa1af8fdb396baaa543879cbcba0..cdfffe670e8476df7aca32c71f1dea065eea33ac 100644 --- a/indexer-core/src/main/resources/swagger.properties +++ b/indexer-core/src/main/resources/swagger.properties @@ -31,6 +31,9 @@ partitionSetupApi.provisionPartition.description=Provision partition. Required r reindexApi.reindex.summary=Re-index given 'kind' reindexApi.reindex.description=This API allows users to re-index a 'kind' without re-ingesting the records via storage API. \ Required roles: `service.search.admin` +reindexApi.reindexRecords.summary=Re-index given records +reindexApi.reindexRecords.description=This API allows users to re-index the given records by providing record ids without \ +re-ingesting the records via storage API. Required roles: `service.search.admin` reindexApi.fullReindex.summary=Full Re-index by data partition reindexApi.fullReindex.description=This API allows users to re-index an entire partition without re-ingesting the records via storage API.\ Required roles: `service.search.admin`