eclipse-sw360 / sw360

SW360 project
https://www.eclipse.org/sw360/
Other
116 stars 96 forks source link

Return an Empty Result Array with 200 Status Code for No Search Results #2459

Open sameed20 opened 1 month ago

sameed20 commented 1 month ago

Description

Currently, the search API returns a 204 HTTP status code with no content when there are no matching results in the database. The desired behavior is to return a 200 HTTP status code with empty searchResults array in response when there are no matching results in the database. beforeTest