MCPcopy Create free account
hub / github.com/audacity/audacity / GetProjectsUrl

Method GetProjectsUrl

libraries/lib-cloud-audiocom/ServiceConfig.cpp:309–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309std::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
327std::string ServiceConfig::GetProjectInfoUrl(std::string_view projectId) const
328{

Callers 1

GetProjectsMethod · 0.80

Calls 3

SubstituteFunction · 0.85
to_stringFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected