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

buddypress-trac noreply at wordpress.org
Sun Jan 12 21:01:21 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        |   Keywords:
--------------------------+-----------------------------
 Hello,

 When you make a BP REST API Request to the endpoint, the result is an
 array. But, because we want to retrieve a specific group, there's no need
 to return an array of group object. Just the group object is enough.

 GET {{host}}/wp-json/buddypress/v1/groups/74

 Ps : In WP REST API, we don't get an array when you want to retrieve a
 specific Post for example.

 Regards,
 Didier

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


More information about the buddypress-trac mailing list