diff --git a/src/Redmine/API.cpp b/src/Redmine/API.cpp index 25afb3a..93717db 100644 --- a/src/Redmine/API.cpp +++ b/src/Redmine/API.cpp @@ -98,7 +98,7 @@ void Redmine::API::processGenericErrors_(httplib::Result &res) const nlohmann::json Redmine::API::get(const std::string &path) const { - DLOG_S(INFO) << "getting API endpoint " << path+".json" << " from " < Redmine::API::getProjects() const { - nlohmann::json projectList = get("/projects"); + nlohmann::json projectList = get("/projects.json"); std::vector projects; for (auto it = projectList["projects"].begin(); it != projectList["projects"].end(); ++it) @@ -202,7 +202,7 @@ std::vector Redmine::API::getProjects() const std::vector Redmine::API::getIssueStatusList() { - nlohmann::json statusList = get("/issue_statuses"); + nlohmann::json statusList = get("/issue_statuses.json"); issueStatusList_.clear(); @@ -241,5 +241,5 @@ void Redmine::API::uploadFileToProject(const std::uint64_t projectId, const std: nlohmann::json upload; upload["file"] = file; - post("/projects/"+std::to_string(projectId)+"/files", upload); + post("/projects/"+std::to_string(projectId)+"/files.json", upload); } \ No newline at end of file