diff options
| author | Shulhan <ms@kilabit.info> | 2022-04-24 17:56:11 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-04-25 01:50:39 +0700 |
| commit | a619e95df4d64ca7a8ddf41d996b62dc23334f9f (patch) | |
| tree | e070ae42070e8dad06c9f8e069b1cc47c7d6cde2 /_sys/usr | |
| parent | f30942daafd60a629a17cb08beeca6e4bb86aa93 (diff) | |
| download | rescached-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
