-
Notifications
You must be signed in to change notification settings - Fork 15
CUR-4097: Implement the Smithsonian Images API's. #1332
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
CUR-4097: Implement the Smithsonian Images API's. #1332
Conversation
->where('name', 'Smithsonian') | ||
->where('media_type', 'Image') | ||
->first(); | ||
if ( empty($checkAlreadyAdded) ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better use "updateOrInsert()" instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. Thanks
config/smithsonian.php
Outdated
| Smithsonian API Base Url | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
'api_base_url' => env('Smithsonian_API_BASE_URL', 'https://api.si.edu/openaccess/api/v1.0'), |
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
CUR-4097: Implement the Smithsonian Images API.