@xano/developer-mcp 1.0.66 → 1.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/xanoscript_docs/apis.md +15 -0
- package/package.json +1 -1
|
@@ -221,6 +221,20 @@ query "users/{user_id}" verb=GET {
|
|
|
221
221
|
}
|
|
222
222
|
```
|
|
223
223
|
|
|
224
|
+
### Route Collisions
|
|
225
|
+
|
|
226
|
+
Routing does **not** cascade. A wildcard segment collides with any literal at the same position and verb, causing a save error.
|
|
227
|
+
|
|
228
|
+
```xs
|
|
229
|
+
// WRONG — these collide (both match the first segment)
|
|
230
|
+
query "{workspace_id}" verb=GET { ... }
|
|
231
|
+
query "something" verb=GET { ... }
|
|
232
|
+
|
|
233
|
+
// CORRECT — prefix wildcards with a literal
|
|
234
|
+
query "workspace/{workspace_id}" verb=GET { ... }
|
|
235
|
+
query "something" verb=GET { ... }
|
|
236
|
+
```
|
|
237
|
+
|
|
224
238
|
---
|
|
225
239
|
|
|
226
240
|
## CRUD Examples
|
|
@@ -443,6 +457,7 @@ When using `return = { type: "list", paging: {...} }`:
|
|
|
443
457
|
1. **Use specific canonicals** - Prefix canonicals to avoid instance-level collisions (e.g., `myapp-users` not `users`)
|
|
444
458
|
2. **Authenticate writes** - Always require `auth` for POST/PATCH/DELETE endpoints
|
|
445
459
|
3. **Paginate lists** - Use `return = { type: "list", paging: {...} }` to avoid unbounded result sets
|
|
460
|
+
4. **Prefix wildcard path segments** - Routing does not cascade, so `{id}` at a path segment collides with any literal at the same segment. Always use a prefix like `workspace/{workspace_id}` instead of bare `{workspace_id}`
|
|
446
461
|
|
|
447
462
|
---
|
|
448
463
|
|
package/package.json
CHANGED