UNPKG

@whook/whook

Version:

Build strong and efficient REST web services.

42 lines (41 loc) 1.33 kB
import { type AppEnvVars } from 'application-services'; export declare const definition: { readonly path: "/ping"; readonly method: "get"; readonly operation: { readonly operationId: "getPing"; readonly summary: "Checks API's availability."; readonly tags: ["system"]; readonly responses: { readonly 200: { readonly description: "Pong"; readonly content: { readonly 'application/json': { readonly schema: { readonly type: "object"; readonly additionalProperties: false; readonly properties: { readonly pong: { readonly type: "string"; readonly enum: ["pong"]; }; }; }; }; }; }; }; }; }; declare const _default: import("knifecycle").ServiceInitializer<{ ENV: AppEnvVars; }, () => Promise<{ status: number; headers: { 'X-Node-ENV': import("application-services").NodeEnv; }; body: { pong: string; }; }>>; export default _default;