Net/ddclient - Add Custom PATCH
Hunv opened this issue · comments
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
- I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
- I have searched the existing issues, open and closed, and I'm convinced that mine is new.
- When the request is meant for an existing plugin, I've added its name to the title.
Is your feature request related to a problem? Please describe.
I try to update a DNS entry at my DNS provider using a HTTP PATCH but recognized only GET, PUT and POST exists. My provider seems to use "udmedia" as a management system for the DNS API, so also other DNS providers may be affected. See https://hilfe.udmedia.de/domains/steht-eine-dns-api-zur-verfuegung/ at Creates/modifies/deletes RRsets present in the payload and their comments
Describe the solution you'd like
An additional property at the "Protocol" Box "Custom PATCH". Also an advice how/where to put the custom query as it is not obvious how/which field is to use to create a call with a body like this:
{
"id":"example.com.",
"rrsets":[
{
"name":"foo.example.com.",
"changetype":"REPLACE",
"type":"A",
"ttl":3600,
"records":[ { "content":"127.0.0.2" } ] }
]
}
Describe alternatives you've considered
A general "Custom" option where it is possible to choose the function in a seperate Combobox, but this may be harder to implement.
Additional context
See above.