MCPcopy
hub / github.com/Effect-TS/effect / addSuccess

Method addSuccess

packages/platform/src/HttpApiEndpoint.ts:84–84  ·  view source on GitHub ↗

* Add a schema for the success response of the endpoint. The status code * will be inferred from the schema, otherwise it will default to 200.

(
    schema: S,
    annotations?: {
      readonly status?: number | undefined
    }
  )

Source from the content-addressed store, hash-verified

82 * will be inferred from the schema, otherwise it will default to 200.
83 */
84 addSuccess<S extends Schema.Schema.Any>(
85 schema: S,
86 annotations?: {
87 readonly status?: number | undefined

Callers 10

GroupsApiClass · 0.80
UsersApiClass · 0.80
TopLevelApiClass · 0.80
UsersApiClass · 0.80
TopLevelApiClass · 0.80
PeopleApiClass · 0.80
OpenApi.test.tsFile · 0.80
toHttpApiGroupFunction · 0.80
toHttpApiGroupFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected