Skip to content
This repository was archived by the owner on Aug 14, 2019. It is now read-only.
This repository was archived by the owner on Aug 14, 2019. It is now read-only.

Disambiguate models and collections in OPTIONS data #2

@rmccue

Description

@rmccue

See WP-API/client-js#167

it would be great if clients could work out whether a response is a model or a collection based on the OPTIONS response. Right now, we supply schema, but this is always for a singular item.

Not sure how best we indicate this. We could specify on the endpoints a hint, or we could change the schema to use [ type: "array", items: { ... } } instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions