Constructor
# new Aletheia(apiKey)
Create an instance of the Aletheia service.
Parameters:
Name | Type | Description |
---|---|---|
apiKey |
string
|
The API key for authentication. |
Extends
- FetchService
Methods
# getAletheiaById(id) → {Promise}
Retrieves a specific Aletheia by ID from the API.
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The ID of the Aletheia. |
A promise that resolves to the fetched Aletheia data.
Promise
# getAletheias() → {Promise}
Retrieves all Aletheias from the API.
A promise that resolves to the fetched Aletheias data.
Promise
# getAletheiasCount() → {Promise}
Retrieves the count of Aletheias from the API.
A promise that resolves to the count of Aletheias.
Promise
# getAlexandriaById(id) → {Promise}
Retrieves a specific Alexandria by ID from the API.
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The ID of the Alexandria. |
A promise that resolves to the fetched Alexandria data.
Promise
# getAlexandrias() → {Promise}
Retrieves all Alexandrias from the API.
A promise that resolves to the fetched Alexandrias data.
Promise
# getAlexandriasCount() → {Promise}
Retrieves the count of Alexandrias from the API.
A promise that resolves to the count of Alexandrias.
Promise
# getCategories() → {Promise}
Retrieves all Categories from the API.
A promise that resolves to the fetched Categories data.
Promise
# getCategoriesCount() → {Promise}
Retrieves the count of Categories from the API.
A promise that resolves to the count of Categories.
Promise
# getCategoryById(id) → {Promise}
Retrieves a specific Category by ID from the API.
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The ID of the Category. |
A promise that resolves to the fetched Category data.
Promise
# getDepartmentById(id) → {Promise}
Retrieves a specific Department by ID from the API.
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The ID of the Department. |
A promise that resolves to the fetched Department data.
Promise
# getDepartments() → {Promise}
Retrieves all Departments from the API.
A promise that resolves to the fetched Departments data.
Promise
# getDepartmentsCount() → {Promise}
Retrieves the count of Departments from the API.
A promise that resolves to the count of Departments.
Promise
# getImportById(id) → {Promise}
Retrieves a specific Import by ID from the API.
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The ID of the Import. |
A promise that resolves to the fetched Import data.
Promise
# getImports() → {Promise}
Retrieves all Imports from the API.
A promise that resolves to the fetched Imports data.
Promise
# getImportsCount() → {Promise}
Retrieves the count of Imports from the API.
A promise that resolves to the count of Imports.
Promise
# getNftById(id) → {Promise}
Retrieves a specific NFT by ID from the API.
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The ID of the NFT. |
A promise that resolves to the fetched NFT data.
Promise
# getNfts() → {Promise}
Retrieves all NFTs from the API.
A promise that resolves to the fetched NFTs data.
Promise
# getNftsCount() → {Promise}
Retrieves the count of NFTs from the API.
A promise that resolves to the count of NFTs.
Promise
# getSourceById(id) → {Promise}
Retrieves a specific Source by ID from the API.
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The ID of the Source. |
A promise that resolves to the fetched Source data.
Promise
# getSources() → {Promise}
Retrieves all Sources from the API.
A promise that resolves to the fetched Sources data.
Promise
# getSourcesCount() → {Promise}
Retrieves the count of Sources from the API.
A promise that resolves to the count of Sources.
Promise
# getUploadById(id) → {Promise}
Retrieves a specific Upload by ID from the API.
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The ID of the Upload. |
A promise that resolves to the fetched Upload data.
Promise
# getUploads() → {Promise}
Retrieves all Uploads from the API.
A promise that resolves to the fetched Uploads data.
Promise
# getUploadsCount() → {Promise}
Retrieves the count of Uploads from the API.
A promise that resolves to the count of Uploads.
Promise