getCommerceHealthWithHttpInfo method

Future<Response> getCommerceHealthWithHttpInfo()

Answers ok whenever the commerce subsystem is mounted.

Answers ok whenever the commerce subsystem is mounted. It is registered before the module embed boots, so it keeps answering even when the embed failed and every business route serves the fail-closed 503 — which is the point: it reports that the process is reachable, never that the money plane is healthy. Unauthenticated: a probe that needs a credential is a probe that reports the credential. A named handler, not a closure, so zipdoc can lift this prose into the registry.

Note: This method returns the HTTP Response.

Implementation

Future<Response> getCommerceHealthWithHttpInfo() async {
  // ignore: prefer_const_declarations
  final path = r'/v1/commerce/health';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}