| 307 | } |
| 308 | |
| 309 | std::string ServiceConfig::GetProjectsUrl( |
| 310 | int page, int pageSize, std::string_view searchTerm) const |
| 311 | { |
| 312 | if (searchTerm.empty()) |
| 313 | return Substitute( |
| 314 | "{api_url}/project?page={page}&per-page={page_size}", |
| 315 | { { "api_url", mApiEndpoint }, |
| 316 | { "page", std::to_string(page) }, |
| 317 | { "page_size", std::to_string(pageSize) }, }); |
| 318 | |
| 319 | return Substitute( |
| 320 | "{api_url}/project?page={page}&per-page={page_size}&q={search_term}", |
| 321 | { { "api_url", mApiEndpoint }, |
| 322 | { "page", std::to_string(page) }, |
| 323 | { "page_size", std::to_string(pageSize) }, |
| 324 | { "search_term", searchTerm }, }); |
| 325 | } |
| 326 | |
| 327 | std::string ServiceConfig::GetProjectInfoUrl(std::string_view projectId) const |
| 328 | { |
no test coverage detected