UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

38 lines 1.14 kB
import { HealthCheckResponseSchema } from '../schemas'; /** * Creates the healthCheck resource methods * OpenAPI Path: /health-check → healthCheck.get * @description Health check endpoint */ export function createHealthCheckResource(executeRequest) { return { /** * Service health check * @description Verify service health and trigger seed jobs if needed * @fullPath api.items.healthCheck.get * @service items * @domain system-health * @discoverable true * @dataMethod healthCheckData.get */ get: async () => { return executeRequest({ method: 'GET', path: '/health-check', responseSchema: HealthCheckResponseSchema, }); }, }; } /** * Creates the healthCheckData resource methods (data-only versions) */ export function createHealthCheckDataResource(healthCheck) { return { get: async () => { const response = await healthCheck.get(); return response.data; }, }; } //# sourceMappingURL=health-check.js.map