1

I want to group three API docs in one swagger-ui. I use Springdoc. Each of the three API-docs has its own url. (They are not in the same project). Is there a way to do this?

Edit: It's now working this way:

springdoc:
  swagger-ui:
    path: /
    urls:
      - name: App1
        url: http://app1.domain.com/v3/api-docs
      - name: App2
        url: http://app2.domain.com/v3/api-docs
      - name: App3
        url: http://app3.domain.com/v3/api-docs
1
  • 1
    I think this question can help you. Commented Aug 31, 2020 at 18:21

1 Answer 1

4

The answer is already available on the F.A.Q:

The properties springdoc.swagger-ui.urls.*, are suitable to configure external (/v3/api-docs url):

  • For example if you want to agreagte all the endpoints of other services, inside one single application. Don’t forget that CORS needs to be enabled as well.

Details of the properties are available here:

Sign up to request clarification or add additional context in comments.

2 Comments

Links are duds. Please update(?)
I realized last link is broken, so here is: Updated link for springdoc-properties: springdoc.org/#properties

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.