Enhance Documents page functionality and update API documentation
- Added a new `$results` property to the Documents page to allow users to specify the maximum number of results returned by the `document_list` endpoint, defaulting to ~108. - Updated the `searchDocuments` method to include the `results` parameter in API requests, ensuring it is sent as a string. - Modified the documents.blade.php view to include an input field for the `results` parameter, with appropriate placeholder text and guidance. - Improved the documentation for the `document_list` endpoint to clarify the behavior of the `results` parameter and its interaction with `thirdid`. - Updated the `Document_GetPDF` section to reflect its functionality and correct usage of the `LAYOUT` parameter. - Added a new test to verify that the `results` parameter is correctly sent to the API. - Overall, enhanced the user experience and API interaction for document management.
This commit is contained in:
@@ -27,6 +27,8 @@ class Documents extends Page
|
||||
|
||||
public string $thirdId = '';
|
||||
|
||||
public string $results = '';
|
||||
|
||||
// document_detail
|
||||
public string $detailJnl = '';
|
||||
|
||||
@@ -148,6 +150,7 @@ class Documents extends Page
|
||||
$params = array_filter([
|
||||
'select' => $this->select,
|
||||
'thirdid' => $this->thirdId,
|
||||
'results' => $this->results,
|
||||
]);
|
||||
|
||||
$response = $service->documentList($params);
|
||||
|
||||
Reference in New Issue
Block a user