diff options
author | neodarz <neodarz@neodarz.net> | 2019-08-07 11:03:58 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-08-07 11:03:58 +0200 |
commit | 4c65baa7b6e0a85635f8028a5ff9979b870d7be0 (patch) | |
tree | 01a285bb270ada1363ca56c00538ef8b56c5e821 /umosapi.h | |
parent | 7dc4e5bfc85474700b3731fc06e48a0e5c1d387b (diff) | |
download | umosapicpp-4c65baa7b6e0a85635f8028a5ff9979b870d7be0.tar.xz umosapicpp-4c65baa7b6e0a85635f8028a5ff9979b870d7be0.zip |
Refactoring umosapi service
Diffstat (limited to 'umosapi.h')
-rw-r--r-- | umosapi.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/umosapi.h b/umosapi.h deleted file mode 100644 index 684f9d5..0000000 --- a/umosapi.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef UmosapiService_H_ -#define UmosapiService_H_ - -#include <pistache/http.h> -#include <pistache/description.h> -#include <pistache/endpoint.h> - -#include <pistache/serializer/rapidjson.h> - -using namespace Pistache; - -class UmosapiService { - public: - - UmosapiService(Address addr); - virtual ~UmosapiService() {}; - - void init(size_t thr); - - void start(std::string swaggerui); - - private: - void createDescription(); - - void retrieveAll(const Rest::Request& request, Http::ResponseWriter response); - - void addUObject(const Rest::Request& request, Http::ResponseWriter response); - - std::shared_ptr<Http::Endpoint> httpEndpoint; - Rest::Description desc; - Rest::Router router; -}; -#endif |