33 lines
549 B
TypeScript
33 lines
549 B
TypeScript
/**
|
|
* Interface of the server (auto-generated code)
|
|
*/
|
|
import {
|
|
HTTPMimeType,
|
|
HTTPRequestModel,
|
|
RESTConfig,
|
|
RESTRequestJson,
|
|
} from "../rest-tools";
|
|
|
|
import {
|
|
HealthResult,
|
|
isHealthResult,
|
|
} from "../model";
|
|
|
|
export namespace HealthCheck {
|
|
|
|
export function getHealth({
|
|
restConfig,
|
|
}: {
|
|
restConfig: RESTConfig,
|
|
}): Promise<HealthResult> {
|
|
return RESTRequestJson({
|
|
restModel: {
|
|
endPoint: "/health_check/",
|
|
requestType: HTTPRequestModel.GET,
|
|
accept: HTTPMimeType.JSON,
|
|
},
|
|
restConfig,
|
|
}, isHealthResult);
|
|
};
|
|
}
|