[wp-trac] [WordPress Trac] #18433: Retrieve a list of posts via XML-RPC
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 26 15:10:43 UTC 2011
#18433: Retrieve a list of posts via XML-RPC
------------------------------------------+------------------------------
Reporter: nprasath002 | Owner: westi
Type: feature request | Status: reviewing
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version:
Severity: normal | Resolution:
Keywords: has-patch mobile westi-likes |
------------------------------------------+------------------------------
Comment (by maxcutler):
Good idea Dan. I see three options to solve that problem:
1. Have an additional parameter that is an array of strings representing
the fields that the caller wishes to receive back. An empty array would be
interpreted as "all".
2. Have an additional string parameter representing 'response type', with
possible values like 'full', 'basic', 'minimal'. This would give some
amount of flexibility to the caller while not making the implementation a
mess by needing to check every single field.
3. Have an additional array/struct parameter that is a set of filters on
the response. Possible filters would be things like 'include_content',
'include_custom_fields', 'include_taxonomies', etc.
I personally am leaning towards 2 but would certainly appreciate others'
thoughts.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18433#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list