Skip to content

Ability to have multiple hosts (per environment) in one swagger spec #1862

Closed
@cabbonizio

Description

@cabbonizio

We are currently using Swagger for documenting our API's but have disabled the test harness feature (supportedSubmitMethods = null) for now. We intend on enabling the test harness, but would like to be able to specify different hosts. All of our APIs are managed through an API Gateway product and all of our clients are able to use a single host per environment. The URI is exactly the same (of course) so just the host changes. For instance:

dev.example.com (development/sandbox)
int.example.com (integration)
qa.example.com (quality/uat)
example.com (production)

What would helpful is if within a single Swagger spec, we can specify the environment name via dropdown (at top or bottom of page?) and behind that is the hostname. This would allow us to have a single place for clients to read documentation, and test services in any environment which they please.

Apologies if this is an open issue or asked for before, but I think this would be very useful from a test harness perspective. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions