Update Journaux page to increase default results limit and ensure results are sent as strings
- Changed the default results limit from 10 to 30 in the Journaux page. - Updated the `searchJournaux` method to cast the results parameter to a string to prevent HTTP 400 errors. - Modified related tests to reflect the new results format and updated expected data structure in API responses. - Enhanced documentation for the `jnl_list` endpoint to clarify the requirement for the results parameter to be a string.
This commit is contained in:
@@ -24,7 +24,7 @@ class Journaux extends Page
|
||||
|
||||
public string $select = '';
|
||||
|
||||
public int $results = 10;
|
||||
public int $results = 30;
|
||||
|
||||
public string $type = '';
|
||||
|
||||
@@ -53,7 +53,7 @@ class Journaux extends Page
|
||||
|
||||
$params = array_filter([
|
||||
'select' => $this->select,
|
||||
'results' => $this->results,
|
||||
'results' => (string) $this->results,
|
||||
'TYPE' => $this->type,
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user