Cached APIs
Description
A locally cached version of SCBD's most static API's.
Install
yarn add @action-agenda/cached-apis
npm install @action-agenda/cached-apis
initializeApiStore = (opts = {})
initializes the local store (IndexedDB/WebSQL/local storage) depending on client.
Properties: (options:Object)
<<< @/packages/cached-apis/src/default-options.mjs#options
Options: apisUrls
<<< @/packages/cached-apis/src/default-options.mjs#apisUrls
Options: dataSources
<<< @/packages/cached-apis/src/default-options.mjs#dataSources
getData = async (dataSource, noCache=false)
lookUp = async(dataSource, keys, single=false)
Data References
Action Categories
Thematic Areas
Government Types
Organization Types
Regions
Aichi Biodiversity Targets
SDG's
Countries
Jurisdictions
Example
.aaexamp{
padding: 3em 3em 3em 3em;
background-color: rgb(38, 90, 79);
}
.aaexamp .inner{
padding: 5em 5em 5em 5em;
background-color: white;
}
.aaexamp-header{
max-width: 740px;
margin: 0 auto;
padding: 2rem 2.5rem;
}