Readonly
rootDefinition shape of an endpoint
Provides a shape of optional data that can be passed as a body to an endpoint
Shape of optional body data
Shape of optional body data
...get({}, $get =>
$get.bodyOpt({ userId: 0 })
)...
Provides a shape of optional data that can be passed as a body to an endpoint as well as an alternate shape for the API to respond
Shape of optional body data
Shape of the alternate response
...get({}, $get =>
$get.bodyOpt({ userId: 0 })
)...
Provides a shape of required data that must be passed as a body to an endpoint
Shape of required body data
Shape of required body data
...get({}, $get =>
$get.bodyReq({ userId: 0 })
)...
Provides a shape of required data that must be passed as a body to an endpoint as well as an alternate shape for the API to respond
Shape of required body data
Shape of the alternate response
...get({}, $get =>
$get.bodyReq({ userId: 0 })
)...
Provides a shape of the error response an API. This is used to detect API-generated errors that are passed with successful 200 responses
Shape of the error response
Shape of the error response
...get({}, $get =>
$get.error({ message: '' })
)...
Provides a shape of optional data that can be passed as query parameters to an endpoint
Shape of optional query params
Shape of optional query params
...get({}, $get =>
$get.queryOpt({ userId: 0 })
)...
Provides a shape of optional data that can be passed as query parameters to an endpoint as well as an alternate shape for the API to respond
Shape of optional query params
Shape of the alternate response
...get({}, $get =>
$get.queryOpt({ userId: 0 })
)...
Provides a shape of required data that must be passed as query parameters to an endpoint
Shape of required query params
Shape of required query params
...get({}, $get =>
$get.queryReq({ userId: 0 })
)...
Provides a shape of required data that must be passed as query parameters to an endpoint as well as an alternate shape for the API to respond
Shape of required query params
Shape of the alternate response
...get({}, $get =>
$get.queryReq({ userId: 0 })
)...
Builder interface to define an endpoint