]>
Commit | Line | Data |
---|---|---|
6ec5e728 CH |
1 | /* |
2 | PowerDNS Versatile Database Driven Nameserver | |
3 | Copyright (C) 2002 - 2014 PowerDNS.COM BV | |
4 | ||
5 | This program is free software; you can redistribute it and/or modify | |
6 | it under the terms of the GNU General Public License version 2 | |
7 | as published by the Free Software Foundation | |
8 | ||
9 | Additionally, the license of this program contains a special | |
10 | exception which allows to distribute the program in binary form when | |
11 | it is linked against OpenSSL. | |
12 | ||
13 | This program is distributed in the hope that it will be useful, | |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | GNU General Public License for more details. | |
17 | ||
18 | You should have received a copy of the GNU General Public License | |
19 | along with this program; if not, write to the Free Software | |
20 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
21 | */ | |
680f25f8 RK |
22 | #ifndef PDNS_WSAPI_HH |
23 | #define PDNS_WSAPI_HH | |
24 | ||
6ec5e728 | 25 | #include <map> |
6ec5e728 CH |
26 | #include "webserver.hh" |
27 | ||
28 | void apiServer(HttpRequest* req, HttpResponse* resp); | |
29 | void apiServerDetail(HttpRequest* req, HttpResponse* resp); | |
30 | void apiServerConfig(HttpRequest* req, HttpResponse* resp); | |
31 | void apiServerSearchLog(HttpRequest* req, HttpResponse* resp); | |
32 | void apiServerStatistics(HttpRequest* req, HttpResponse* resp); | |
33 | ||
3c3c006b | 34 | // helpers |
8171ab83 | 35 | DNSName apiZoneIdToName(const string& id); |
36 | string apiZoneNameToId(const DNSName& name); | |
cc015fba | 37 | void apiCheckNameAllowedCharacters(const string& name); |
cb9b5901 | 38 | void apiCheckQNameAllowedCharacters(const string& name); |
c576d0c5 | 39 | DNSName apiNameToDNSName(const string& name); |
3c3c006b | 40 | |
6ec5e728 CH |
41 | // To be provided by product code. |
42 | void productServerStatisticsFetch(std::map<string,string>& out); | |
680f25f8 RK |
43 | |
44 | #endif /* PDNS_WSAPI_HH */ |