API to search project by name

sonarqube

(Jenkins Aprisma) #1

Hi, I am trying to search projects contains “Project Name”.
http://localhost:9000/projects?search=WMS
Url above is working on my pc.

But I try to open the url on other pc and it doesn’t work. Usually, Sort by will be by Name, but on the other pc, it has changed sort by last analysis. So when the other pc open the url, it will automatically redirect to projects?sort=-last_analysis.

How to make the search url working on other pc even when they had already make changes in Sort By?

Thank you :slight_smile:


(G Ann Campbell) #2

Hi,

To get consistent results, include the sort parameter you want in your URL.

 
Ann