Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updated fixtures
  • Loading branch information
ramonjd committed Jun 27, 2023
commit 6c4e4106760ff4c43aeab8eb550a29860c5f17ca
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ public function register_routes() {
* @return array Collection parameters.
*/
public function get_collection_params() {
$collection_params = parent::get_collection_params();
$query_params['context']['default'] = 'view';
$collection_params['offset'] = array(
$collection_params = parent::get_collection_params();
$collection_params['context']['default'] = 'view';
$collection_params['offset'] = array(
'description' => __( 'Offset the result set by a specific number of items.' ),
'type' => 'integer',
);
Expand Down
15 changes: 8 additions & 7 deletions tests/qunit/fixtures/wp-api-generated.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,7 @@ mockedApiResponse.Schema = {
"wp-site-health/v1",
"wp-block-editor/v1"
],
"authentication": {
"application-passwords": {
"endpoints": {
"authorization": "http://example.org/wp-admin/authorize-application.php"
}
}
},
"authentication": [],
"routes": {
"/": {
"namespace": "",
Expand Down Expand Up @@ -9635,6 +9629,13 @@ mockedApiResponse.Schema = {
"required": false
},
"context": {
"description": "Scope under which the request is made; determines fields present in response.",
"type": "string",
"enum": [
"view",
"embed",
"edit"
],
"default": "view",
"required": false
},
Expand Down