View Source erldns_admin_zone_resource_handler (erldns v4.2.0)

Cowbow handler that handles Admin API requests to /zones/:name

Summary

Functions

Only GET and DELETE methods are allowed

Delete a zone from cache

Verify if a zone is cached

Return information about a given zone in cache

Functions

allowed_methods(Req, State)

Only GET and DELETE methods are allowed

delete_resource(Req, State)

Delete a zone from cache

resource_exists(Req, State)

Verify if a zone is cached

to_json(Req, State)

Return information about a given zone in cache