[wp-trac] [WordPress Trac] #39965: REST API: not possible to request collection of posts across post types
WordPress Trac
noreply at wordpress.org
Mon Aug 14 18:11:00 UTC 2017
#39965: REST API: not possible to request collection of posts across post types
-------------------------+-----------------------
Reporter: iseulde | Owner: jnylen0
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.9
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: rest-api | Focuses:
-------------------------+-----------------------
Comment (by joehoyle):
I think per @iseulde's point, a search endpoint would be best here. As
@danielbachhuber said, having `/wp/posts` or similar return different
types seems like a really bad idea, it totally breaks out controller - per
- type model, schema for endpoint etc.
I'm still not sure why a `/batch` wouldn't suffice here though?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39965#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list