module SonarQube::Projects

Public Instance Methods

get() click to toggle source

Returns all projects (functional interface)

@return A JSON object, containing all the projects.
# File lib/sonarqube-client/projects.rb, line 91
def get
  'api/projects/index?format=json'
end
search_by_key(key) click to toggle source

Search for a project by key (functional interface)

== Parameters:
Project key

== Returns:
A JSON object containing the project details (what details?).

== Example endpoints:

localhost:9000/api/projects/index?key=35 localhost:9000/api/projects/index?key=java-sonar-runner-simple

# File lib/sonarqube-client/projects.rb, line 106
def search_by_key key
  '/api/projects/index?key=' + key
end
search_by_name(name) click to toggle source

Search for a project by name

== Parameters:
Project name

== Returns:
A JSON object, containing all the project details (what details?).

== Example endpoints:

localhost:9000/api/projects/index?search=java

# File lib/sonarqube-client/projects.rb, line 120
def search_by_name name
  'api/projects/index?search=' + name
end