Skip to content
Snippets Groups Projects
Commit 8ab87cb7 authored by Riabokon Stanislav(EPAM)[GCP]'s avatar Riabokon Stanislav(EPAM)[GCP]
Browse files

Merge branch 'bugfix/GONRG-1022-fix-swagger' into 'integration-master'

GONRG-1022: Fix swagger for Indexer

Closes GONRG-1022

See merge request go3-nrg/platform/System/indexer!10
parents 0966da51 cb88291d
No related branches found
No related tags found
1 merge request!46GCP fix swagger (GONRG-1022)
package org.opengroup.osdu.indexer.swagger;
import org.opengroup.osdu.core.common.model.http.DpsHeaders;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ParameterBuilder;
......@@ -29,7 +30,7 @@ public class SwaggerDocumentationConfig {
public Docket api() {
ParameterBuilder builder = new ParameterBuilder();
List<Parameter> parameters = new ArrayList<>();
builder.name("slb-data-partition-id")
builder.name(DpsHeaders.DATA_PARTITION_ID)
.description("tenant")
.defaultValue("common")
.modelRef(new ModelRef("string"))
......@@ -48,7 +49,7 @@ public class SwaggerDocumentationConfig {
return new Docket(DocumentationType.SWAGGER_2)
.globalOperationParameters(parameters)
.select()
.apis(RequestHandlerSelectors.basePackage("com.slb.storage.api"))
.apis(RequestHandlerSelectors.basePackage("org.opengroup.osdu.indexer.api"))
.build()
.securityContexts(Collections.singletonList(securityContext()))
.securitySchemes(Collections.singletonList(apiKey()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment