Skip to content

Conversation

@asimsarwar
Copy link
Contributor

CUR-4097: Implement the Smithsonian Images API.

->where('name', 'Smithsonian')
->where('media_type', 'Image')
->first();
if ( empty($checkAlreadyAdded) ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better use "updateOrInsert()" instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. Thanks

| Smithsonian API Base Url
|--------------------------------------------------------------------------
*/
'api_base_url' => env('Smithsonian_API_BASE_URL', 'https://api.si.edu/openaccess/api/v1.0'),
Copy link
Contributor

@fahad-curriki fahad-curriki Sep 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better make "Smithsonian" in uppercase as well.
Also add "Smithsonian_API_BASE_URL" and "Smithsonian_API_KEY" in ".env.example"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. Thanks

}

/**
* Get Smithsonian Contents List
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doc blocks missing for request params.

}

/**
* Get Smithsonian Content Detail
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doc blocks missing for request params.

Copy link
Contributor

@fahad-curriki fahad-curriki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR approved, please check.

@fahad-curriki fahad-curriki merged commit ea95ecb into develop Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants