Skip to content

Provider Porkbun: Remove trailing '.' from alias delete request #775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 27, 2024

Conversation

bentemple
Copy link
Collaborator

@bentemple bentemple commented Jul 27, 2024

Description

The porkbun documentation example request to delete a domain does not contain a trailing '.' URI Endpoint Example: https://api.porkbun.com/api/json/v3/dns/deleteByNameType/borseth.ink/A/www

This updates the code to match that.

Test-Plan

Changed delete to allow arbitrary deletes of any type (instead of just ALIAS)
Changed code to delete+create instead of update to change a porkbun domain Verified that delete works by deleting and creating a domain to update it instead of calling the update endpoint.

\# Description
The porkbun documentation example request to delete a domain does not contain a trailing '.'
`URI Endpoint Example: https://api.porkbun.com/api/json/v3/dns/deleteByNameType/borseth.ink/A/www`

This updates the code to match that.

\# Test-Plan
Changed delete to allow arbitrary deletes of any type (instead of just ALIAS)
Changed code to delete+create instead of update to change a porkbun domain
Verified that delete works by deleting and creating a domain to update it instead of calling the update endpoint.
Copy link
Owner

@qdm12 qdm12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for splitting your PR 💯 👍

@qdm12 qdm12 merged commit 1cd57d6 into qdm12:master Jul 27, 2024
@bentemple bentemple deleted the ben.temple/fix-trailing-period branch August 17, 2024 06:49
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.

2 participants