@@ -54,8 +54,8 @@ b2c scapi schemas list --tenant-id <TENANT_ID>
5454| Flag | Description | Default |
5555| ------| -------------| ---------|
5656| ` --tenant-id ` | (Required) Organization/tenant ID | |
57- | ` --api-family ` | Filter by API family (e.g., shopper, admin ) | |
58- | ` --api-name ` | Filter by API name (e.g., products, orders ) | |
57+ | ` --api-family ` | Filter by API family (e.g., product, checkout, search ) | |
58+ | ` --api-name ` | Filter by API name (e.g., shopper- products, shopper-baskets ) | |
5959| ` --api-version ` | Filter by API version (e.g., v1) | |
6060| ` --status ` , ` -s ` | Filter by schema status (` current ` , ` deprecated ` ) | |
6161| ` --columns ` , ` -c ` | Columns to display (comma-separated) | |
@@ -75,10 +75,10 @@ Extended columns (shown with `--extended`): `schemaVersion`, `link`
7575b2c scapi schemas list --tenant-id zzxy_prd
7676
7777# Filter by API family
78- b2c scapi schemas list --tenant-id zzxy_prd --api-family shopper
78+ b2c scapi schemas list --tenant-id zzxy_prd --api-family product
7979
8080# Filter by API name
81- b2c scapi schemas list --tenant-id zzxy_prd --api-name products
81+ b2c scapi schemas list --tenant-id zzxy_prd --api-name shopper- products
8282
8383# Filter by status
8484b2c scapi schemas list --tenant-id zzxy_prd --status current
@@ -98,12 +98,12 @@ Default table output:
9898```
9999Found 15 schema(s):
100100
101- API Family API Name Version Status
102- ──────────────────────────────────────────
103- shopper products v1 current
104- shopper orders v1 current
105- shopper customers v1 current
106- admin inventory v1 current
101+ API Family API Name Version Status
102+ ───────────────────────────────────────────────
103+ product shopper- products v1 current
104+ checkout shopper-baskets v2 current
105+ search shopper-search v1 current
106+ customer shopper-customers v1 current
107107...
108108```
109109
@@ -123,8 +123,8 @@ b2c scapi schemas get <apiFamily> <apiName> <apiVersion> --tenant-id <TENANT_ID>
123123
124124| Argument | Description |
125125| ----------| -------------|
126- | ` apiFamily ` | API family (e.g., shopper, admin ) |
127- | ` apiName ` | API name (e.g., products, orders ) |
126+ | ` apiFamily ` | API family (e.g., product, checkout, search ) |
127+ | ` apiName ` | API name (e.g., shopper- products, shopper-baskets ) |
128128| ` apiVersion ` | API version (e.g., v1) |
129129
130130### Flags
@@ -148,72 +148,72 @@ b2c scapi schemas get <apiFamily> <apiName> <apiVersion> --tenant-id <TENANT_ID>
148148
149149By default, schemas are output in a collapsed/outline format optimized for context efficiency (ideal for agentic use cases and LLM consumption):
150150
151- - ** Paths** : Show only HTTP methods available: ` {"/products": ["get", "post "]} `
152- - ** Schemas** : Show only schema names: ` {"Product": {}, "Order ": {}} `
153- - ** Examples** : Show only example names: ` {"ProductExample ": {}} `
151+ - ** Paths** : Show only HTTP methods available: ` {"/products": ["get"] , "/products/{id}": ["get "]} `
152+ - ** Schemas** : Show only schema names: ` {"Product": {}, "ProductResult ": {}} `
153+ - ** Examples** : Show only example names: ` {"product-example ": {}} `
154154
155155Use the ` --expand-* ` flags for selective expansion or ` --expand-all ` for the full, unmodified schema.
156156
157157### Examples
158158
159159``` bash
160160# Get collapsed/outline schema (default - context efficient)
161- b2c scapi schemas get shopper products v1 --tenant-id zzxy_prd
161+ b2c scapi schemas get product shopper- products v1 --tenant-id zzxy_prd
162162
163163# Get full schema without collapsing
164- b2c scapi schemas get shopper products v1 --tenant-id zzxy_prd --expand-all
164+ b2c scapi schemas get product shopper- products v1 --tenant-id zzxy_prd --expand-all
165165
166166# Expand specific paths only
167- b2c scapi schemas get shopper products v1 --tenant-id zzxy_prd --expand-paths /products,/products/{id }
167+ b2c scapi schemas get product shopper- products v1 --tenant-id zzxy_prd --expand-paths /products,/products/{productId }
168168
169169# Expand specific schemas only
170- b2c scapi schemas get shopper products v1 --tenant-id zzxy_prd --expand-schemas Product,SearchResult
170+ b2c scapi schemas get product shopper- products v1 --tenant-id zzxy_prd --expand-schemas Product,ProductResult
171171
172172# Expand specific examples only
173- b2c scapi schemas get shopper products v1 --tenant-id zzxy_prd --expand-examples ProductExample
173+ b2c scapi schemas get product shopper- products v1 --tenant-id zzxy_prd --expand-examples product-example
174174
175175# Combine selective expansions
176- b2c scapi schemas get shopper products v1 --tenant-id zzxy_prd --expand-paths /products --expand-schemas Product
176+ b2c scapi schemas get product shopper- products v1 --tenant-id zzxy_prd --expand-paths /products --expand-schemas Product
177177
178178# List available paths in the schema
179- b2c scapi schemas get shopper products v1 --tenant-id zzxy_prd --list-paths
179+ b2c scapi schemas get product shopper- products v1 --tenant-id zzxy_prd --list-paths
180180
181181# List available schema names
182- b2c scapi schemas get shopper products v1 --tenant-id zzxy_prd --list-schemas
182+ b2c scapi schemas get product shopper- products v1 --tenant-id zzxy_prd --list-schemas
183183
184184# List available examples
185- b2c scapi schemas get shopper products v1 --tenant-id zzxy_prd --list-examples
185+ b2c scapi schemas get product shopper- products v1 --tenant-id zzxy_prd --list-examples
186186
187187# Output as YAML
188- b2c scapi schemas get shopper products v1 --tenant-id zzxy_prd --yaml
188+ b2c scapi schemas get product shopper- products v1 --tenant-id zzxy_prd --yaml
189189
190190# Output wrapped JSON with metadata
191- b2c scapi schemas get shopper products v1 --tenant-id zzxy_prd --json
191+ b2c scapi schemas get product shopper- products v1 --tenant-id zzxy_prd --json
192192
193193# Disable custom properties expansion
194- b2c scapi schemas get shopper products v1 --tenant-id zzxy_prd --no-expand-custom-properties
194+ b2c scapi schemas get product shopper- products v1 --tenant-id zzxy_prd --no-expand-custom-properties
195195```
196196
197197### Output Formats
198198
199199** Default (raw JSON to stdout)** : The schema is output directly to stdout as JSON. Use shell redirection to save to a file:
200200
201201``` bash
202- b2c scapi schemas get shopper products v1 --tenant-id zzxy_prd > schema.json
202+ b2c scapi schemas get product shopper- products v1 --tenant-id zzxy_prd > schema.json
203203```
204204
205205** YAML format (` --yaml ` )** : Output as YAML for readability:
206206
207207``` bash
208- b2c scapi schemas get shopper products v1 --tenant-id zzxy_prd --yaml > schema.yaml
208+ b2c scapi schemas get product shopper- products v1 --tenant-id zzxy_prd --yaml > schema.yaml
209209```
210210
211211** Wrapped JSON (` --json ` )** : Output includes metadata wrapper:
212212
213213``` json
214214{
215- "apiFamily" : " shopper " ,
216- "apiName" : " products" ,
215+ "apiFamily" : " product " ,
216+ "apiName" : " shopper- products" ,
217217 "apiVersion" : " v1" ,
218218 "schema" : { ... }
219219}
0 commit comments