Skip to content

Commit

Permalink
REST API: Media: Add meta object to response format
Browse files Browse the repository at this point in the history
Required to be included in Jetpack response, used in pagination of Calypso editor media library

See: Automattic/wp-calypso#1191
See: Automattic/wp-calypso#9165

Merges r145158-wpcom.
  • Loading branch information
Andrew Duthie authored and zinigor committed Apr 19, 2017
1 parent ffc9f5b commit 5f35e76
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions json-endpoints.php
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,8 @@

'response_format' => array(
'media' => '(array) Array of media objects',
'found' => '(int) The number of total results found'
'found' => '(int) The number of total results found',
'meta' => '(object) Meta data',
),

'example_request' => 'https://public-api.wordpress.com/rest/v1.1/sites/82974409/media',
Expand Down Expand Up @@ -1279,7 +1280,8 @@

'response_format' => array(
'media' => '(array) Array of media objects',
'found' => '(int) The number of total results found'
'found' => '(int) The number of total results found',
'meta' => '(object) Meta data',
),

'example_request' => 'https://public-api.wordpress.com/rest/v1.2/sites/82974409/media',
Expand Down

0 comments on commit 5f35e76

Please sign in to comment.