Skip to content

docs: fix swagger documentation for DELETE port share endpoint #18426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 18, 2025

Conversation

blink-so[bot]
Copy link
Contributor

@blink-so blink-so bot commented Jun 18, 2025

Description

Fixes incorrect Swagger documentation for the DELETE workspace agent port share endpoint.

Problem

The DELETE endpoint at /workspaces/{workspace}/port-share had duplicate Swagger documentation from the GET endpoint:

  • @Summary Get workspace agent port shares (should be "Delete...")
  • @ID get-workspace-agent-port-shares (should be "delete-...")

This caused confusing API documentation where both endpoints appeared to have the same purpose.

Solution

Updated the DELETE endpoint's Swagger annotations to properly describe the delete operation:

  • @Summary Delete workspace agent port share
  • @ID delete-workspace-agent-port-share

Testing

  • Verified the HTTP methods are correct (GET vs DELETE)
  • Confirmed only documentation comments were changed
  • No functional code changes

The DELETE endpoint for workspace agent port shares had incorrect
Swagger documentation that duplicated the GET endpoint's summary
and ID. This fixes the documentation to properly describe the
DELETE operation.

Co-authored-by: matifali <10648092+matifali@users.noreply.github.com>
@matifali matifali requested a review from johnstcn June 18, 2025 12:08
blink-so bot and others added 2 commits June 18, 2025 12:14
This updates the generated API documentation to reflect the corrected
Swagger annotations for the DELETE port share endpoint.

Co-authored-by: matifali <10648092+matifali@users.noreply.github.com>
This updates all the markdown API documentation files to reflect
the corrected Swagger annotations for the DELETE port share endpoint.
The documentation now properly shows separate sections for GET and
DELETE operations with correct descriptions.

Co-authored-by: matifali <10648092+matifali@users.noreply.github.com>
@johnstcn
Copy link
Member

Try running make gen

@matifali matifali enabled auto-merge (squash) June 18, 2025 14:04
@matifali matifali merged commit 98a9aa1 into main Jun 18, 2025
59 of 61 checks passed
@matifali matifali deleted the fix-port-share-api-docs branch June 18, 2025 14:07
@github-actions github-actions bot locked and limited conversation to collaborators Jun 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants