Skip to content
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