mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
[master] add xml/v2 and xml/v3 URIs
3527. [compat] Add a URI to allow applications to explicitly request a particular XML schema from the statistics channel, returning 404 if not supported. [RT #32481]
This commit is contained in:
parent
081a44bd30
commit
a13aa526be
3 changed files with 22 additions and 2 deletions
4
CHANGES
4
CHANGES
|
|
@ -1,3 +1,7 @@
|
|||
3527. [compat] Add a URI to allow applications to explicitly
|
||||
request a particular XML schema from the statistics
|
||||
channel, returning 404 if not supported. [RT #32481]
|
||||
|
||||
3526. [cleanup] Set up dependencies for unit tests correctly during
|
||||
build. [RT #32803]
|
||||
|
||||
|
|
|
|||
|
|
@ -1984,8 +1984,10 @@ add_listener(ns_server_t *server, ns_statschannel_t **listenerp,
|
|||
goto cleanup;
|
||||
|
||||
#ifdef HAVE_LIBXML2
|
||||
isc_httpdmgr_addurl(listener->httpdmgr, "/xml", render_index, server);
|
||||
isc_httpdmgr_addurl(listener->httpdmgr, "/", render_index, server);
|
||||
isc_httpdmgr_addurl(listener->httpdmgr, "/xml", render_index, server);
|
||||
isc_httpdmgr_addurl(listener->httpdmgr, "/xml/v3", render_index,
|
||||
server);
|
||||
#endif
|
||||
#ifdef HAVE_JSON
|
||||
isc_httpdmgr_addurl(listener->httpdmgr, "/json",
|
||||
|
|
|
|||
|
|
@ -10564,7 +10564,21 @@ ns.domain.com.rpz-nsdname CNAME .
|
|||
>http://127.0.0.1:8888/xml</ulink>. A CSS file is
|
||||
included which can format the XML statistics into tables
|
||||
when viewed with a stylesheet-capable browser, and into
|
||||
charts and graphs when using a javascript-capable browser.
|
||||
charts and graphs using the Google Charts API when using a
|
||||
javascript-capable browser.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Applications that depend on a particular XML schema
|
||||
can request
|
||||
<ulink url="http://127.0.0.1:8888/xml/v2"
|
||||
>http://127.0.0.1:8888/xml/v2</ulink> for version 2
|
||||
of the statistics XML schema or
|
||||
<ulink url="http://127.0.0.1:8888/xml/v3"
|
||||
>http://127.0.0.1:8888/xml/v3</ulink> for version 3.
|
||||
If the requested schema is supported by the server, then
|
||||
it will respond; if not, it will return a "page not found"
|
||||
error.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
|
|
|||
Loading…
Reference in a new issue