You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: