Make API endpoints compatible with Vultr API v2 format

- Change auth from X-API-Key header to Authorization: Bearer format
- Add /v2 prefix to all endpoints to match Vultr API URL structure
- Fix router paths (dns, firewall) to avoid duplicate path segments
- Split VPC 2.0 into separate router at /v2/vpc2

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
HWANG BYUNGHA
2026-01-22 17:03:19 +09:00
parent 184054c6c1
commit b807b9d267
7 changed files with 159 additions and 136 deletions

View File

@@ -10,6 +10,7 @@ from . import (
block_storage,
reserved_ips,
vpc,
vpc2,
load_balancers,
bare_metal,
backups,
@@ -29,6 +30,7 @@ __all__ = [
"block_storage",
"reserved_ips",
"vpc",
"vpc2",
"load_balancers",
"bare_metal",
"backups",