Skip to content

Remove non-existent /swagger endpoint from root help - #1981

Open
waldekmastykarz wants to merge 1 commit into
dotnet:mainfrom
waldekmastykarz:fix-1963-swagger-in-help
Open

waldekmastykarz wants to merge 1 commit into
dotnet:mainfrom
waldekmastykarz:fix-1963-swagger-in-help

Conversation

@waldekmastykarz

Copy link
Copy Markdown
Collaborator

The root help advertised an OpenAPI spec at <api-url>/swagger, but no Swagger/OpenAPI middleware has been registered since Swashbuckle was removed in #1647, so the URL returns 404. This removes the line; the help already points to devproxy api show for endpoint discovery.

Closes #1963



The API no longer serves an OpenAPI description (Swashbuckle was removed
in dotnet#1647), so the help pointed to a URL that returns 404. Endpoints are
discoverable via 'devproxy api show', which the help already mentions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 21412cff-89bf-42ec-a0fd-9932695d825d
Copilot AI balanced review requested due to automatic review settings October 21, 2026 13:55
@waldekmastykarz
waldekmastykarz requested a review from a team as a code owner October 21, 2026 13:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused help-text correction satisfies the issue’s requirements without changing API behavior.

No open issues 🎉

What changed in this PR

Corrects root help by removing the nonexistent /swagger endpoint reference, resolving #1963.

Changes:

  • Removes the misleading OpenAPI URL while retaining devproxy api show guidance for endpoint discovery.
File Description
DevProxy/​Commands/​DevProxyCommand.cs Removes the invalid Swagger URL from root help.

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused help-text correction matches the reported issue and preserves valid API guidance.

No open issues 🎉

Review effort: Balanced

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Root help advertises a /swagger endpoint that doesn't exist

2 participants