Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Search
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
Search
Merge requests
!459
Generate Swagger using springdoc-openapi OAS 3.0
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Generate Swagger using springdoc-openapi OAS 3.0
az/td-oas
into
master
Overview
3
Commits
9
Pipelines
12
Changes
26
Merged
Thulasi Dass Subramanian
requested to merge
az/td-oas
into
master
1 year ago
Overview
3
Commits
9
Pipelines
12
Changes
26
Expand
Link to ADR(Architecture Decision Record)
:
Swagger using springdoc-openapi
OpenAPI 3.0 related changes
upgraded to latest
springdoc openapi
latest version
1.6.14
used
@OpenAPIDefinition
annotation to populate OpenAPI Object fields
[info, tags, servers, security]
Documented
Search, Info, Health Check
API with OpenAPI 3.0
Annotations
Added the standard HTTP Response(4xx, 5x****x) for API Responses
Custom Path for
Swagger UI
:
https://host/context-path/swagger
(will redirect to
https://host/context-path/swagger-ui/index.html
)
api-docs (JSON)
:
https://host/context-path/api-docs
api-docs (YAML)
:
https://host/context-path/api-docs.yaml
Azure Swagger GLAB
(
for Reference
)
Swagger UI
:
https://osdu-glab.msft-osdu-test.org/api/search/v2/swagger
(will redirect to
https://osdu-glab.msft-osdu-test.org/api/search/v2/swagger-ui/index.html
)
api-docs (JSON)
:
https://osdu-glab.msft-osdu-test.org/api/search/v2/api-docs
api-docs (YAML)
:
https://osdu-glab.msft-osdu-test.org/api/search/v2/api-docs.yaml
Other Changes
Configurable
descriptions managed in
swagger.properties
added
Integration Test
cases for
Swagger api-docs
endpoint
Deleted HomeController
Hide the WhoamiController
Updated Readme for swagger related information
References
https://springdoc.org/faq.html#_can_i_use_spring_property_with_swagger_annotations
https://springdoc.org/migrating-from-springfox.html
0
0
Merge request reports
Activity
All activity
Filter activity
Deselect all
Approvals
Assignees & reviewers
Comments (from bots)
Comments (from users)
Commits & branches
Edits
Labels
Lock status
Mentions
Merge request status
Tracking
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Please
register
or
sign in
to reply
Loading