[buddypress-trac] [BuddyPress Trac] #8200: Retrieving specific Group via REST API returns an array

buddypress-trac noreply at wordpress.org
Mon Jan 13 03:39:36 UTC 2020


#8200: Retrieving specific Group via REST API returns an array
--------------------------+------------------------------
 Reporter:  ExoConsult    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  5.0.0
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by espellcaste):

 That's true! I actually don't have any strong feelings about it. The idea
 to return an array on single items was for consistency. One would expect
 that all endpoints returns an array, regardless if it is fetching a single
 item or a collection of items.

 But I agree that's not how core does it but one's preference. And also
 that's not something set on stone, we can certainly change that to make
 sure single item be returned the object instead of the collection.

 @imath what do you think about it?

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8200#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list