Commit 0e83db2
committed
feat: add api catalog discovery with list, describe, and search subcommands
Refactor 'godaddy api' from a single raw-request command into a parent
command with discovery subcommands so agents can explore API endpoints
before making requests.
New subcommands:
- godaddy api list [--domain <name>] - browse API domains and endpoints
- godaddy api describe <operationId-or-path> - full schema detail
- godaddy api search <query> - keyword search across all endpoints
- godaddy api call <endpoint> - the original raw request behavior
Build-time pipeline:
- scripts/generate-api-catalog.ts reads OpenAPI specs from spec
submodules (starting with location.addresses-specification), resolves
all external $ref URLs recursively, and outputs self-contained JSON
catalog files that esbuild inlines into the bundle.
The catalog loader (src/cli/schemas/api/index.ts) uses Effect throughout:
Effect.succeed, Effect.sync, Effect.gen, and Option for all public APIs.1 parent b3cba2f commit 0e83db2
File tree
9 files changed
+1659
-35
lines changed- scripts
- src
- cli
- commands
- schemas/api
- tests/unit
9 files changed
+1659
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments