Note: the methods returning WireframeAPI return a self-reference and can thus be chained together. You can read more about chaining from the ProcessWire API documentation.
getResponse(): ?\Wireframe\APIResponse
— returns the API response objectsendHeaders(): WireframeAPI
— sends API headers (JSON content type and response status code)render(): string
— renders the API responsesetEnabledEndpoints(array $endpoints): WireframeAPI
— sets enabled API endpoints based on provided arraygetEnabledEndpoints(): array
— returns an array of enabled API endpointsenableEndpoint(string $endpoint): WireframeAPI
— enables a single API endpoint by namedisableEndpoint(string $endpoint): WireframeAPI
— disables a single API endpoint by nameaddEndpoint(string $endpoint, callable $callable): WireframeAPI
— adds a custom endpointremoveEndpoint(string $endpoint): WireframeAPI
— removes a single endpoint