forked from ontoportal/ontologies_api_ruby_client
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from ontoportal-lirmm/feature/federate-multipl…
…e-apis Feature: implement federation of collections calls
- Loading branch information
Showing
14 changed files
with
301 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,33 @@ | ||
# config.rb is required for testing | ||
# unit test makes calls to bioportal api so it needs a valid API key which can | ||
# be set via ENV variable UT_APIKEY | ||
abort('UT_APIKEY env variable is not set. Canceling tests') unless ENV.include?('UT_APIKEY') | ||
abort('UT_APIKEY env variable is set to an empty value. Canceling tests') unless ENV['UT_APIKEY'].size > 5 | ||
$API_CLIENT_INVALIDATE_CACHE = false | ||
$DEBUG_API_CLIENT = false | ||
|
||
LinkedData::Client.config do |config| | ||
config.rest_url = 'https://data.bioontology.org' | ||
config.rest_url = 'https://data.bioontology.org/' | ||
config.apikey = '8b5b7825-538d-40e0-9e9e-5ab9274a9aeb' | ||
config.links_attr = 'links' | ||
config.cache = true | ||
config.debug_client = false | ||
config.debug_client_keys = [] | ||
config.federated_portals = { | ||
bioportal: { | ||
api: 'https://data.agroportal.lirmm.fr/', | ||
apikey: '1de0a270-29c5-4dda-b043-7c3580628cd5', | ||
color: '#234979', | ||
}, | ||
ecoportal: { | ||
api: 'https://data.ecoportal.lifewatch.eu/', | ||
apikey: "43a437ba-a437-4bf0-affd-ab520e584719", | ||
color: '#0f4e8a', | ||
}, | ||
# earthportal: { | ||
# api: 'https://earthportal.eu:8443/', | ||
# apikey: "c9147279-954f-41bd-b068-da9b0c441288", | ||
# color: '#1e2251', | ||
# }, | ||
biodivportal: { | ||
api: 'https://data.biodivportal.gfbio.org/', | ||
apikey: "47a57aa3-7b54-4f34-b695-dbb5f5b7363e", | ||
color: '#1e2251', | ||
} | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.