api help is shown
This commit is contained in:
parent
0c5ef2e939
commit
bbebb4060e
2 changed files with 39 additions and 22 deletions
|
@ -44,6 +44,7 @@ namespace fw
|
|||
void post_firewall_handler();
|
||||
void delete_firewall_handler();
|
||||
void not_found_handler();
|
||||
void api_endpoints_handler();
|
||||
|
||||
bool request_has_firewall_parameter();
|
||||
String json_new_attribute(String key, String value, bool last = false);
|
||||
|
@ -53,13 +54,14 @@ namespace fw
|
|||
String construct_json_firewall_rule(firewall_rule_t *);
|
||||
String construct_json_firewall();
|
||||
String construct_json_api_endpoint(api_endpoint_t *);
|
||||
String construct_json_api(const uint16_t response_code);
|
||||
String construct_json_array(String message, String array_name);
|
||||
String construct_json_api();
|
||||
String construct_json_begin(const uint16_t response_code);
|
||||
|
||||
protected:
|
||||
String server_ip;
|
||||
uint16_t server_port;
|
||||
void handle_client();
|
||||
String get_url_base();
|
||||
|
||||
public:
|
||||
API(const char *cert, const char *key, const char *username, const char *password, const String ip, const uint16_t port);
|
||||
|
|
Reference in a new issue