wso2 / api-manager

All issues, tasks, improvements and new features of WSO2 API Manager
Apache License 2.0
34 stars 8 forks source link

APIM Startup Health Check Returns 200 OK if at Least One API Succeeds, Ignoring Failures in Other APIs #3359

Open Rickfdalton opened 1 week ago

Rickfdalton commented 1 week ago

Description

Hi Team,

According to the documentation [1], the server startup health check should return 200 OK only if all APIs are deployed successfully. However, it currently returns a 500 Internal Server Error only when all APIs fail to deploy and gives a 200 OK response for any other scenario, even if some APIs fail.

Some users want to verify whether all APIs are deployed to the gateway during startup using the health check API.

[1]. https://apim.docs.wso2.com/en/4.0.0/install-and-setup/setup/deployment-best-practices/basic-health-checks/#:~:text=.%20If%20everything%20is%20in%20order%20and%20all%20the%20APIs%20are%20deployed%20successfully%2C%20the%20health%2Dcheck%20API%20will%20respond%20with%20a%20status%20code%20of%20200%20OK.

Regards, Jathavan.

Steps to Reproduce

N/A

Affected Component

APIM

Version

4.0.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response