Skip to content

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

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.

3 participants