2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2015-08-12 15:27:35 +02:00
|
|
|
|
|
|
|
#ifndef CREATEOBJECTHANDLER_H
|
|
|
|
#define CREATEOBJECTHANDLER_H
|
|
|
|
|
|
|
|
#include "remote/httphandler.hpp"
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2018-01-04 06:11:04 +01:00
|
|
|
class CreateObjectHandler final : public HttpHandler
|
2015-08-12 15:27:35 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
DECLARE_PTR_TYPEDEFS(CreateObjectHandler);
|
|
|
|
|
2018-01-04 05:12:56 +01:00
|
|
|
bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
|
2017-12-19 15:50:05 +01:00
|
|
|
HttpResponse& response, const Dictionary::Ptr& params) override;
|
2015-08-12 15:27:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* CREATEOBJECTHANDLER_H */
|