Skip to content

Add method to bind new endpoint handlers #51

@kadamwhite

Description

@kadamwhite

Per @rmccue, providers of the WP-API can expose new query endpoints and we should acocunt for those.

[6/30/14, 3:01:29 AM] Ryan McCue:
So e.g. for WooCommerce, implementing /products as a shorthand for /posts?type=products

The option we discussed was to add a .customEndpoint method, in the manner of .registerType (see #7); however, the other option would be to make a function on WP that could be used to define a new constructor and specify the types at instantiation. Worth discussing. cc @carldanley

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions