re-uploading work
This commit is contained in:
64
web/src/api/services/HealthService.ts
Normal file
64
web/src/api/services/HealthService.ts
Normal file
@@ -0,0 +1,64 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { HealthResponse } from '../models/HealthResponse';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
export class HealthService {
|
||||
/**
|
||||
* Basic health check endpoint
|
||||
* Returns 200 OK if the service is running
|
||||
* @returns any Service is healthy
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static health(): CancelablePromise<Record<string, any>> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/health',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Detailed health check endpoint
|
||||
* Checks database connectivity and returns detailed status
|
||||
* @returns HealthResponse Service is healthy with details
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static healthDetailed(): CancelablePromise<HealthResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/health/detailed',
|
||||
errors: {
|
||||
503: `Service unavailable`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Liveness check endpoint
|
||||
* Returns 200 OK if the service process is alive
|
||||
* @returns any Service is alive
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static liveness(): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/health/live',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Readiness check endpoint
|
||||
* Returns 200 OK if the service is ready to accept requests
|
||||
* @returns any Service is ready
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static readiness(): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/health/ready',
|
||||
errors: {
|
||||
503: `Service not ready`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user