Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(rest): Update search API to return 200 status with empty results array when no match found #2460

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sameed20
Copy link
Contributor

@sameed20 sameed20 commented May 17, 2024

Description

This PR updates the search API to return a 200 status code with an empty results array when no matches are found.
aftest

closes: #2459

@afsahsyeda afsahsyeda added needs code review needs general test This is general testing, meaning that there is no org specific issue to check for labels May 20, 2024
@akshitjoshii
Copy link
Contributor

Testing this PR.

@afsahsyeda
Copy link
Contributor

Code looks good to me.

@GMishx
Copy link
Contributor

GMishx commented Aug 31, 2024

@akshitjoshii any updates with the tests on this PR?

@GMishx
Copy link
Contributor

GMishx commented Aug 31, 2024

@sameed20 please rebase with latest main.

…array when no match found

Signed-off-by: sameed.ahmad <sameed.ahmad@siemens-healthineers.com>
@sameed20 sameed20 force-pushed the feat/return-empty-search-results-with-200-status branch from ccadca8 to fe05d9f Compare September 18, 2024 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has merge conflicts needs general test This is general testing, meaning that there is no org specific issue to check for
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Return an Empty Result Array with 200 Status Code for No Search Results
4 participants