const ExternalAPI = HttpApi.make("ExternalAPI").add(
HttpApiGroup.make("someGroup").add(
HttpApiEndpoint.get("someEndpoint")`/`.addSuccess(Schema.String)
)
)
// Implement the "Greetings" group
const GreetingsLive = HttpApiBuilder.group(ExternalAPI, "someGroup", (handlers) =>
handlers.handle("someEndpoint", () => Effect.gen(function* () {
// use a http client to call the actual third party API
})
)
const ExternalAPI = HttpApi.make("ExternalAPI").add(
HttpApiGroup.make("someGroup").add(
HttpApiEndpoint.get("someEndpoint")`/`.addSuccess(Schema.String)
)
)
// Implement the "Greetings" group
const GreetingsLive = HttpApiBuilder.group(ExternalAPI, "someGroup", (handlers) =>
handlers.handle("someEndpoint", () => Effect.gen(function* () {
// use a http client to call the actual third party API
})
)