endpoint-request

Methods

(inner) create(handlerSpec, resource, namespace) → {function}

Create an endpoint request handler constructor for a specific resource tree

Source:
Parameters:
Name Type Description
handlerSpec Object

A resource handler specification object

resource String

The root resource of requests created from the returned factory

namespace String

The namespace string for the returned factory's handlers

Returns:
Type:
function

A constructor inheriting from WPRequest