swagger-api / swagger-api/swagger-ui

override server url/host programmatically

Open
#7,981 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
29k
Forks
9.3k
Avg merge
2d 23h
Merged PRs (30d)
25

Description

Hi,

I have a requirement where for all the spec uploaded in swagger ui I need to use my custom server url instead of default server url defined in spec template files. I need to do these changes in the swagger ui code as we cannot change server url in template files.

Any pointer would be really helpful

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not identify a file, test, or entry point. Start by tracing how Swagger UI loads OpenAPI specifications and resolves their server URLs, then determine where a programmatic override could apply to all uploaded specs. Done means a documented override works without changing the specification templates and existing behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.