Hi,
I have a question related to the REST endpoint /api/issues/search. As it is currently implemented, I see no way to differentiate between the two scenarios where 1) there are no issues for a component or 2) if there is no component with the given key (
/api/issues/search?components=unknown) because both just return an empty list. Or have I overlooked something? Is this something you would likely address?
Thinking about this, scenario 2) could have two sub-scenarios: 1) when the given key is just wrong or 2) when there are no results for the given key because the file did not get analyzed with SonarQube (e.g., a README.md file). So actually, I want to differentiate between the three :-)
I think this differentiation (either with an HTTP code like 404 or with different results) is really important for users of the REST interface because only with this differentiation we could yield sensible error messages to our users.