Skip to content

Comments

feat: add godaddy api command for direct API access#2

Open
wcole1-godaddy wants to merge 7 commits intomainfrom
feature/api-command
Open

feat: add godaddy api command for direct API access#2
wcole1-godaddy wants to merge 7 commits intomainfrom
feature/api-command

Conversation

@wcole1-godaddy
Copy link
Contributor

Add a new command that allows direct, authenticated requests to any GoDaddy API endpoint, similar to gh api and vercel api. Features:

  • Support for all HTTP methods (GET, POST, PUT, PATCH, DELETE)
  • Field arguments (-f key=value) and JSON file body (-F path)
  • Custom headers (-H "Key: Value")
  • JSON path queries for filtering output (-q .path.to.value)
  • Response header display (-i, --include)
  • Debug mode shows request/response details (--debug)
  • Proactive token expiry checking with helpful messages
  • Specific handling for 401/403 responses

Also includes:

  • Comprehensive documentation in README
  • Unit tests for API module and command
  • Improved test reliability for CI environments

wcole1-godaddy and others added 2 commits February 3, 2026 16:22
Add a new command that allows direct, authenticated requests to any
GoDaddy API endpoint, similar to `gh api` and `vercel api`. Features:

- Support for all HTTP methods (GET, POST, PUT, PATCH, DELETE)
- Field arguments (-f key=value) and JSON file body (-F path)
- Custom headers (-H "Key: Value")
- JSON path queries for filtering output (-q .path.to.value)
- Response header display (-i, --include)
- Debug mode shows request/response details (--debug)
- Proactive token expiry checking with helpful messages
- Specific handling for 401/403 responses

Also includes:
- Comprehensive documentation in README
- Unit tests for API module and command
- Improved test reliability for CI environments

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant