Deprecation of Size Query Parameter in Core API Search Endpoint
Change
The size query parameter for the Core API search endpoint (POST /api/dataexplorer/search) is being deprecated in Flywheel v21.4.0. This parameter is redundant with the equivalent size parameter available in the request body.
The query parameter will continue to function in v21.x releases but is scheduled for removal in a future major version.
Reason For Change
- The
sizeparameter in the request body provides identical functionality to the query parameter. - Having multiple ways to specify the same parameter creates unnecessary complexity and potential for confusion.
- Consolidating to a single method (request body parameter) aligns with REST API best practices for POST endpoints.
Recommended Action
For Flywheel SDK Users
If you are passing size as a separate parameter to the fw.search() method, update your code to include size within the SearchQuery object instead.
Example change:
No action is required if you already include size within the SearchQuery object.
For Direct API Users
If your application directly calls the Core API search endpoint with the size query parameter:
- Update your code to pass the
sizeparameter in the request body instead of as a query parameter. - Example change:
- Before:
POST /api/dataexplorer/search?size=100with request body - After:
POST /api/dataexplorer/searchwithsizeincluded in the request body
- Before:
No action is required if you already use the request body parameter.