MCPcopy Create free account
hub / github.com/Effect-TS/effect / TopLevelApi

Class TopLevelApi

packages/platform-node/test/HttpApi.test.ts:557–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555{}
556
557class TopLevelApi extends HttpApiGroup.make("root", { topLevel: true })
558 .add(
559 HttpApiEndpoint.get("healthz")`/healthz`
560 .addSuccess(HttpApiSchema.NoContent.annotations({ description: "Empty" }))
561 )
562{}
563
564class AnotherApi extends HttpApi.make("another").add(GroupsApi) {}
565

Callers

nothing calls this directly

Calls 5

addSuccessMethod · 0.80
addMethod · 0.65
makeMethod · 0.65
getMethod · 0.65
annotationsMethod · 0.65

Tested by

no test coverage detected