wip to new rest method

This commit is contained in:
2018-05-21 22:28:10 +02:00
parent 49972f892b
commit 81442524a3
8 changed files with 197 additions and 21 deletions

View File

@@ -56,8 +56,11 @@ class RestController : public WebController
bool from_json(struct json_object *a_node);
bool find(uint8_t a_method, const std::string &an_url);
std::string get_parameter(const std::string &an_url);
const Ubus &get_ubus(void) const;
const uint8_t get_method(void) const;
const std::string &get_endpoint(void) const;
bool is_raw_response(void);
@@ -82,6 +85,13 @@ class RestController : public WebController
std::string m_method_put;
uint16_t m_timeout;
*/
private:
void manage_endpoint(void);
std::string m_parameter_name;
std::size_t m_parameter_position;
std::string m_controller;
};
#endif /* _REST_CONTROLLER_H */