diff --git a/app/CurrikiGo/Smithsonian/Commands/Contents/GetContentListCommand.php b/app/CurrikiGo/Smithsonian/Commands/Contents/GetContentListCommand.php index 30f0d49ca..37e266cf0 100644 --- a/app/CurrikiGo/Smithsonian/Commands/Contents/GetContentListCommand.php +++ b/app/CurrikiGo/Smithsonian/Commands/Contents/GetContentListCommand.php @@ -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(); } diff --git a/app/Http/Controllers/Api/V1/Integration/SmithsonianIOAAPIClientController.php b/app/Http/Controllers/Api/V1/Integration/SmithsonianIOAAPIClientController.php index 4ad4f32e3..55180d1bf 100644 --- a/app/Http/Controllers/Api/V1/Integration/SmithsonianIOAAPIClientController.php +++ b/app/Http/Controllers/Api/V1/Integration/SmithsonianIOAAPIClientController.php @@ -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 @@ -40,6 +41,7 @@ public function __construct() public function getContentList(Request $request) { $getParam = $request->only([ + 'q', 'start', 'rows', 'sort',