diff options
| author | Shulhan <ms@kilabit.info> | 2022-05-15 13:27:28 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-05-15 13:27:28 +0700 |
| commit | 188f8b7c0285dc0752113ecbb3af546697cba64d (patch) | |
| tree | ccf4d674415c7fdd9ef2791f5b6e59053f98c82b /cmd/resolver/resolver.go | |
| parent | fc042afcacfc105f354b8903837bf22a7169d12e (diff) | |
| download | rescached-188f8b7c0285dc0752113ecbb3af546697cba64d.tar.xz | |
all: refactoring the HTTP API for deleting zone record
Previously, the HTTP API for deleting a record is by passing the
parameters as JSON in the body.
This may cause issue if HTTP client does not support sending body
in DELETE method.
This changes the method to pass the parameters in the query,
DELETE /zone.d/rr?zone=<string>&type=<string>&record=<base64 json>
Parameters,
- zone: the zone name,
- type: the record type,
- record: the content of record with its domain name and value.
Diffstat (limited to 'cmd/resolver/resolver.go')
0 files changed, 0 insertions, 0 deletions
