aboutsummaryrefslogtreecommitdiff
path: root/api/umosapi.h
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-09-09 17:17:44 +0200
committerneodarz <neodarz@neodarz.net>2019-09-09 17:17:44 +0200
commitbc6aeaa834d666221171d302d4f101ce65608898 (patch)
tree9fecfeb46e4189fb4baebf7f1bd1fb1277b36631 /api/umosapi.h
parent5b66830ca806e00f415d6ee83b15e410130de371 (diff)
downloadumosapicpp-bc6aeaa834d666221171d302d4f101ce65608898.tar.xz
umosapicpp-bc6aeaa834d666221171d302d4f101ce65608898.zip
Refactoring some code to be more readable
Diffstat (limited to 'api/umosapi.h')
-rw-r--r--api/umosapi.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/api/umosapi.h b/api/umosapi.h
index a1765d7..3cb2b47 100644
--- a/api/umosapi.h
+++ b/api/umosapi.h
@@ -16,6 +16,8 @@ using namespace std;
using json = nlohmann::json;
+namespace UmosapiService {
+
struct tag {
std::string name;
std::string description;
@@ -53,11 +55,11 @@ struct Paths {
std::vector<Path> paths;
};
-class UmosapiService {
+class Api {
public:
- UmosapiService();
- virtual ~UmosapiService() {};
+ Api();
+ virtual ~Api() {};
void init();
@@ -105,4 +107,5 @@ class UmosapiService {
void swagger(std::string ui_path, std::string swagger_dir, std::string api_path);
};
+}
#endif