Skip to content

CUR-4199 update get content list api w.r.t search param. #1342

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct($getParam)
*/
public function execute()
{
$apiUrl = config('smithsonian.api_base_url') . '/search?api_key='.config('smithsonian.api_key').'&q=online_visual_material:true&' . http_build_query($this->getParam);
$apiUrl = config('smithsonian.api_base_url') . '/search?api_key='.config('smithsonian.api_key').'&' . http_build_query($this->getParam);
$response = Http::get($apiUrl);
return $response->json();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function __construct()
/**
* Get Smithsonian Contents List
* @param Request $request
* @bodyParam q string use for search Example: q=online_visual_material:true AND IC 443
* @bodyParam start int like page number Example: 1
* @bodyParam rows int like page size or number of record per page Example: 10
* @bodyParam sort string Sort list by id, newest, updated and random field
Expand All @@ -40,6 +41,7 @@ public function __construct()
public function getContentList(Request $request)
{
$getParam = $request->only([
'q',
'start',
'rows',
'sort',
Expand Down