aboutsummaryrefslogtreecommitdiff
path: root/_sys/usr
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-04-24 17:56:11 +0700
committerShulhan <ms@kilabit.info>2022-04-25 01:50:39 +0700
commita619e95df4d64ca7a8ddf41d996b62dc23334f9f (patch)
treee070ae42070e8dad06c9f8e069b1cc47c7d6cde2 /_sys/usr
parentf30942daafd60a629a17cb08beeca6e4bb86aa93 (diff)
downloadrescached-a619e95df4d64ca7a8ddf41d996b62dc23334f9f.tar.xz
all: refactor the APIs to manage hosts.d resource records (RR)
There are two APIs to manage hosts.d RR: create and delete. Previously, the create API pass the hosts name inside and values inside the path, POST /hosts.d/<name>/rr?domain=&value= This commit changes the request type to form, so all parameters move to body, POST /hosts.d/rr Content-Type: application/x-www-form-urlencoded name=&domain=&value= On delete API, we changes the name parameter to be send on query parameter along with domain to be deleted. Previously, the delete API was DELETE /hosts.d/<name>/rr?domain= now it become DELETE /hosts.d/rr?name=&domain=
Diffstat (limited to '_sys/usr')
0 files changed, 0 insertions, 0 deletions