Search for projects. Used to provide the ability to search for any component but this option has been removed and webservice 'api/components/tree' should be used instead for this purpose
Parameters (4)
organization(string, query, required)
Organization key
p(string, query, optional, default: 1)
1-based page number
ps(string, query, optional, default: 100)
Page size. Must be greater than 0 and less or equal than 500
q(string, query, optional)
Limit search to: - component names that contain the supplied string- component keys that are exactly the same as the supplied string
import zingu_apis
api = zingu_apis.api("sonarqube")
result = api.fetch("api/components/search", organization="my-org", p=42, ps=20, q="sonar")
for item in result:
print(item)
const resp = await fetch("https://sonarcloud.io/api/components/search?organization=my-org&p=42&ps=20&q=sonar");
const data = await resp.json();