Api Generate banner
0xGF 0xGF

Api Generate

Testing community

Description

--- description: Generate OpenAPI spec and type-safe API client allowed-tools: Bash(npm:*), Bash(pnpm:*), Bash(npx:*) --- # API Generate Command This command regenerates the type-safe API client from the backend OpenAPI spec. ## Steps 1. First, generate the OpenAPI spec from the backend (if applicable): ```bash # Adjust the command based on your project structure pnpm run generate:openapi # or npm run generate:openapi ``` 2. Then, generate the API client (React Query hooks) from the spec:

Installation

Installs to ~/.claude/commands/0xgf-solana-fullstack-webapp-skills-api-generate.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/0xGF/solana-fullstack-webapp-skills/HEAD/.claude/commands/api-generate.md -o ~/.claude/commands/0xgf-solana-fullstack-webapp-skills-api-generate.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository