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
Add API Browser with Swagger UI for VS Code extension (#244)
* Add `slas token` command for retrieving SLAS shopper access tokens
Supports public (PKCE) and private (client_credentials) client flows,
guest and registered customer authentication, and auto-discovery of
public SLAS clients via the admin API.
* api browser wip
* Fix API Browser: CORS proxy, auth, parameter prefill, and UX improvements
- Proxy API requests through extension host to avoid CORS in webview
- Fix OAuth2 preauthorize payload format (lock icons now turn green)
- Fix parameter prefill for $ref schemas (replace schema instead of adding sibling)
- Pre-fill both organizationId and siteId from config
- Acquire token before rendering and embed via onComplete callback
- Extract required scopes from spec and include tenant scope for Admin APIs
- Add scopes option to CreateOAuthOptions in SDK for scope-aware token requests
- Expand custom_properties when fetching SCAPI schemas
- Defer tree view loading until user clicks "Load APIs"
- Remove transparent background overrides to fix Swagger UI code block readability
- Align SLAS token logging with Auth module conventions ([SLAS REQ/RESP] format)
* Add changeset for SDK scopes option and SLAS logging
* Include b2c-vs-extension in changeset
---------
Co-authored-by: amit-kumar8-sf <amit.kumar.sf1408@gmail.com>
Add API Browser with Swagger UI for interactive SCAPI exploration. Proxy requests through extension host to avoid CORS, pre-fill parameters and auth tokens, and expand custom properties in schemas.
"description": "Enable the API Browser for exploring SCAPI schemas."
66
+
},
62
67
"b2c-dx.logLevel": {
63
68
"type": "string",
64
69
"default": "info",
@@ -114,6 +119,12 @@
114
119
"name": "Libraries",
115
120
"icon": "media/b2c-icon.svg",
116
121
"contextualTitle": "B2C-DX"
122
+
},
123
+
{
124
+
"id": "b2cApiBrowser",
125
+
"name": "API Browser",
126
+
"icon": "media/b2c-icon.svg",
127
+
"contextualTitle": "B2C-DX"
117
128
}
118
129
],
119
130
"b2c-dx-sandboxes": [
@@ -133,6 +144,10 @@
133
144
"view": "b2cContentExplorer",
134
145
"contents": "No content libraries configured.\n\nSet \"contentLibrary\" in dw.json or add a library manually.\n\n[Add Library](command:b2c-dx.content.addLibrary)"
135
146
},
147
+
{
148
+
"view": "b2cApiBrowser",
149
+
"contents": "Browse SCAPI OpenAPI schemas for your Commerce Cloud instance.\n\nRequires OAuth credentials (clientId, clientSecret) and shortCode in dw.json.\n\n[Load APIs](command:b2c-dx.apiBrowser.refresh)"
150
+
},
136
151
{
137
152
"view": "b2cSandboxExplorer",
138
153
"contents": "No sandbox realms configured.\n\nSet \"realm\" in dw.json or add a realm manually.\n\n[Add Realm](command:b2c-dx.sandbox.addRealm)"
0 commit comments