You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
### Fixed
11
11
12
-
-[Swagger] Refactored `publish_portal_product` to build live URLs dynamically from `SWAGGER_PORTAL_BASE_PATH`, support preview and section/table-of-contents paths, and return the resolved `liveUrl` in the publish response.
12
+
-[Swagger] Refactored `publish_portal_product` to build published URLs dynamically from `SWAGGER_PORTAL_BASE_PATH`, support preview and section/table-of-contents paths, and return the resolved `liveUrl` or `previewUrl` in the publish response.
Copy file name to clipboardExpand all lines: docs/products/SmartBear MCP Server/swagger-portal-integration.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ The Swagger Portal client provides comprehensive portal and product management c
116
116
#### `publish_portal_product`
117
117
118
118
- Purpose: Publish a product's content to make it live or as preview. This endpoint publishes the current content of a product, making it visible to portal visitors. Use preview mode to test before going live.
119
-
- Returns: Publication status information, including the generated live URL when the product can be resolved.
119
+
- Returns: Publication status information, including the generated `liveUrl` for live publication or `previewUrl` for preview publication when the product can be resolved.
120
120
- Use case: Make product content visible to portal visitors, either as live content or preview for testing.
121
121
- Parameters:
122
122
@@ -126,7 +126,7 @@ The Swagger Portal client provides comprehensive portal and product management c
126
126
|`preview`| Whether to publish as preview (true) or live (false). Preview allows testing before going live. Defaults to false (live publication) | boolean | No |
127
127
|`tableOfContentsId`| Optional table of contents UUID, or identifier in the format 'portal-subdomain:product-slug:section-slug:table-of-contents-slug' used to resolve a specific live URL path | string | No |
128
128
129
-
The publish response now includes `liveUrl`when available. The live URL is built dynamically from the configured `portalBasePath`, so it works across dev2, int, and production environments.
129
+
The publish response now includes `liveUrl`for live publication and `previewUrl` for preview publication. The URL is built dynamically from the configured `portalBasePath`, so it works across dev2, int, and production environments. When `tableOfContentsId` resolves, the returned URL includes the section and table-of-contents path.
Copy file name to clipboardExpand all lines: src/swagger/client/api.ts
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -361,11 +361,12 @@ export class SwaggerAPI {
361
361
}
362
362
363
363
/**
364
-
* Publish a portal product and generate live URL with environment-specific domain
364
+
* Publish a portal product and generate a published URL with environment-specific domain.
365
+
* Returns `liveUrl` for live publishes and `previewUrl` for preview publishes.
365
366
* @param productId - ID of the product to publish
366
367
* @param preview - Whether to publish in preview mode (default: false)
367
-
* @param tableOfContentsId - Optional tableOfContentsId The table of contents UUID, or identifier in the format 'portal-subdomain:product-slug:section-slug:table-of-contents-slug'
368
-
* @returns Complete publish response with product details and live URL
368
+
* @param tableOfContentsId - Optional table of contents UUID, or identifier in the format 'portal-subdomain:product-slug:section-slug:table-of-contents-slug'
369
+
* @returns Complete publish response with product details and the resolved published URL
369
370
*/
370
371
asyncpublishPortalProduct(
371
372
productId: string,
@@ -399,12 +400,13 @@ export class SwaggerAPI {
399
400
400
401
// Build live URL using environment-specific domain
0 commit comments