|
void | get_collection_ids (std::vector< std::string > &collection_ids) const |
|
void | get_collections (const std::string &provider_id, std::map< std::string, std::unique_ptr< cmr::Collection > > &collections) const |
|
void | get_days (const std::string &collection_name, const std::string &r_year, const std::string &r_month, std::vector< std::string > &days_result) const |
|
std::unique_ptr< Granule > | get_granule (const std::string &collection_name, const std::string &r_year, const std::string &r_month, const std::string &r_day, const std::string &granule_id) const |
|
cmr::Granule * | get_granule (const std::string path) const |
|
void | get_granule_ids (const std::string &collection_name, const std::string &r_year, const std::string &r_month, const std::string &r_day, std::vector< std::string > &granule_ids) const |
|
void | get_granules (const std::string &collection_name, const std::string &r_year, const std::string &r_month, const std::string &r_day, std::vector< std::unique_ptr< cmr::Granule > > &granule_objs) const |
|
void | get_granules_umm (const std::string &collection_name, const std::string &r_year, const std::string &r_month, const std::string &r_day, std::vector< std::unique_ptr< cmr::GranuleUMM > > &granule_objs) const |
|
void | get_months (const std::string &collection_name, const std::string &year, std::vector< std::string > &months_result) const |
|
void | get_opendap_collections (const std::string &provider_id, std::map< std::string, std::unique_ptr< cmr::Collection > > &collections) const |
|
unsigned long int | get_opendap_collections_count (const std::string &provider_id) const |
|
void | get_opendap_providers (std::map< std::string, std::unique_ptr< cmr::Provider > > &providers) const |
|
void | get_providers (std::vector< std::unique_ptr< cmr::Provider > > &providers) const |
|
const nlohmann::json & | get_related_urls_array (const nlohmann::json &go) const |
|
void | get_years (const std::string &collection_name, std::vector< std::string > &years_result) const |
|
unsigned long | granule_count (const std::string &collection_name, const std::string &r_year, const std::string &r_month, const std::string &r_day) const |
|
Definition at line 53 of file CmrApi.h.
void cmr::CmrApi::get_providers |
( |
std::vector< std::unique_ptr< cmr::Provider > > & | providers | ) |
const |
Uses the "new" CMR providers API to retrieve all of the Providers information using, specifically, the <cmr_host>/search/providers endpoint and NOT the <cmr_host>/ingest/providers endpoint. This is because the ingest/providers endpoint returns a metadata free list of the providers, and then to get the metadata for each provider a separate HTTP request must be made.
The <cmr_host>/search/providers endpoint returns the metadata for all of the providers, so a single HTTP request
- Parameters
-
providers | The vector into which each Providers unique_ptr object will be placed. |
Definition at line 777 of file CmrApi.cc.