Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
Indexer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
System
Indexer
Commits
cb88291d
Commit
cb88291d
authored
4 years ago
by
Igor Filippov (EPAM)
Browse files
Options
Downloads
Patches
Plain Diff
GONRG-1022: Fix swagger for Indexer
parent
0966da51
No related branches found
No related tags found
1 merge request
!46
GCP fix swagger (GONRG-1022)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indexer-core/src/main/java/org/opengroup/osdu/indexer/swagger/SwaggerDocumentationConfig.java
+3
-2
3 additions, 2 deletions
...roup/osdu/indexer/swagger/SwaggerDocumentationConfig.java
with
3 additions
and
2 deletions
indexer-core/src/main/java/org/opengroup/osdu/indexer/swagger/SwaggerDocumentationConfig.java
+
3
−
2
View file @
cb88291d
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
()));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment