No description
Find a file
Richard Robert Reitz df697c0ff6 fix(sdk): correct delete payload structure for v2 API and add delete command
The v2 API requires a different JSON payload structure than what was being sent.
Both DeleteApp and DeleteAppInstance needed to wrap their parameters properly.

SDK Changes:
- Update DeleteAppInput to use {region, app: {key}} structure
- Update DeleteAppInstanceInput to use {region, appinst: {key}} structure
- Fix DeleteApp method to populate new payload structure
- Fix DeleteAppInstance method to populate new payload structure

CLI Changes:
- Add delete command with -f flag for config file specification
- Support --dry-run to preview deletions
- Support --auto-approve to skip confirmation
- Implement v1 and v2 API support following same pattern as apply
- Add deletion planner to discover resources matching config
- Add resource manager to execute deletions (instances first, then app)

Test Changes:
- Update example_test.go to use EdgeConnectConfig_v1.yaml
- All tests passing including comprehensive delete test coverage

Verified working with manual API testing against live endpoint.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-20 15:15:23 +02:00
.claude feat(apply): Implement EdgeConnect configuration parsing foundation 2025-09-29 16:18:35 +02:00
.github/workflows ci: Added test workflow running on each push except tags 2025-10-07 16:10:02 +02:00
api doc(api): rename current swagger to _v2, add old swagger as _v1 2025-10-20 10:05:24 +02:00
cmd fix(sdk): correct delete payload structure for v2 API and add delete command 2025-10-20 15:15:23 +02:00
internal fix(sdk): correct delete payload structure for v2 API and add delete command 2025-10-20 15:15:23 +02:00
sdk fix(sdk): correct delete payload structure for v2 API and add delete command 2025-10-20 15:15:23 +02:00
.edge-connect.yaml.example feat(config): add API version selector for v1 and v2 2025-10-20 13:41:50 +02:00
.envrc.example chore: Added flake 2025-10-07 14:37:54 +02:00
.gitignore chore: Added flake 2025-10-07 14:37:54 +02:00
.goreleaser.yaml fix(cli): Force usage of gitea token 2025-10-02 13:44:28 +02:00
apply-todo.md feat(apply): Implement CLI command with comprehensive deployment workflow 2025-09-29 17:24:59 +02:00
apply.md chore(cli): Removed appName from config schema. This is redundant to metadata name 2025-09-30 11:33:52 +02:00
config.yaml.example feat(cli): Implement Edge Connect CLI tool 2025-09-18 13:51:09 +02:00
Dockerfile feat(client): add basic client, model 2025-09-16 13:02:33 +02:00
flake.lock chore: Added flake 2025-10-07 14:37:54 +02:00
flake.nix chore: Added flake 2025-10-07 14:37:54 +02:00
go.mod feat(apply): Implement deployment planning with intelligent state comparison 2025-09-29 16:36:21 +02:00
go.sum feat(apply): Implement deployment planning with intelligent state comparison 2025-09-29 16:36:21 +02:00
main.go feat(cli): Implement Edge Connect CLI tool 2025-09-18 13:51:09 +02:00
Makefile Renamed package and removed unused make calls 2025-09-29 09:41:44 +02:00
plan.md feat(apply): Implement EdgeConnect configuration parsing foundation 2025-09-29 16:18:35 +02:00