Skip to content

createEndpoint

createEndpoint<Req, Res>(config): ApiEndpoint<Req, Res>

Defined in: wp-typia-rest/src/client.ts:425

Freeze a WordPress REST endpoint definition as a typed public contract.

Req

Res

ApiEndpoint<Req, Res>

Endpoint metadata and validators to expose.

ApiEndpoint<Req, Res>

The same config, preserved as an ApiEndpoint.