Skip to content

Adapt DNS alias API to new cname-records endpoints#1069

Open
PaulJouvanceau wants to merge 1 commit into
opensvc:mainfrom
PaulJouvanceau:feat/dns-alias-cname-records
Open

Adapt DNS alias API to new cname-records endpoints#1069
PaulJouvanceau wants to merge 1 commit into
opensvc:mainfrom
PaulJouvanceau:feat/dns-alias-cname-records

Conversation

@PaulJouvanceau

Copy link
Copy Markdown
Contributor
  • Change the none target constant to "none.ocp"
  • Update Alias struct JSON tag for ZoneID to "zoneId"
  • Migrate API endpoints:
    • GET /zones/{zoneID}/cname-records?name=...&id=...
    • POST /zones/{zoneID}/cname-records
    • PATCH /zones/{zoneID}/cname-records/{uuid} (target only)
    • DELETE /zones/{zoneID}/cname-records/{uuid}
  • Parse response using "cnameRecords" field instead of "aliases"
  • Adjust helper and tests to match new API contract

- Change the none target constant to "none.ocp"
- Update Alias struct JSON tag for ZoneID to "zoneId"
- Migrate API endpoints:
  - GET /zones/{zoneID}/cname-records?name=...&id=...
  - POST /zones/{zoneID}/cname-records
  - PATCH /zones/{zoneID}/cname-records/{uuid} (target only)
  - DELETE /zones/{zoneID}/cname-records/{uuid}
- Parse response using "cnameRecords" field instead of "aliases"
- Adjust helper and tests to match new API contract
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