Constructor
# new DGCP(apiKey)
Create an instance of DGCPApi service.
Parameters:
Name | Type | Description |
---|---|---|
apiKey |
string
|
The API key for authentication. |
Extends
- FetchService
Methods
# getReleaseByOcid(ocid) → {Promise}
Get release by ID.
Parameters:
Name | Type | Description |
---|---|---|
ocid |
string
|
The OCID of the release. |
A promise that resolves to the release data.
Promise
# getReleases() → {Promise}
Get total pages by releases.
A promise that resolves to the total pages of releases.
Promise
# getReleasesByCovid(condition, page) → {Promise}
Get releases by Covid.
Parameters:
Name | Type | Description |
---|---|---|
condition |
boolean
|
The condition for Covid releases. |
page |
string
|
The page number. |
A promise that resolves to an array of releases based on the Covid condition and page.
Promise
# getReleasesByPage(page) → {Promise}
Get releases.
Parameters:
Name | Type | Description |
---|---|---|
page |
string
|
The page number. |
A promise that resolves to an array of releases.
Promise
# getReleasesByProcuringEntity(procuringEntity, page) → {Promise}
Get releases by procuringEntity.
Parameters:
Name | Type | Description |
---|---|---|
procuringEntity |
string
|
The name of the procuringEntity. |
page |
string
|
The page number. |
A promise that resolves to an array of releases for the specified procuringEntity and page.
Promise
# getReleasesBySupplier(supplier, page) → {Promise}
Get releases by supplier.
Parameters:
Name | Type | Description |
---|---|---|
supplier |
string
|
The name of the supplier. |
page |
string
|
The page number. |
A promise that resolves to an array of releases for the specified supplier and page.
Promise
# getReleasesByYear(year, page) → {Promise}
Get releases by year.
Parameters:
Name | Type | Description |
---|---|---|
year |
string
|
The year of release. |
page |
string
|
The page number. |
A promise that resolves to an array of releases for the specified year and page.
Promise
# getTotalPagesByCovid(condition) → {Promise}
Get total pages by Covid releases.
Parameters:
Name | Type | Description |
---|---|---|
condition |
boolean
|
The condition for Covid releases. |
A promise that resolves to the total pages of releases based on the Covid condition.
Promise
# getTotalPagesByProcuringEntity(procuringEntity) → {Promise}
Get total pages releases per procuringEntity.
Parameters:
Name | Type | Description |
---|---|---|
procuringEntity |
string
|
The name of the procuringEntity. |
A promise that resolves to the total pages of releases for the specified procuringEntity.
Promise
# getTotalPagesBySupplier(supplier) → {Promise}
Get total pages releases per supplier.
Parameters:
Name | Type | Description |
---|---|---|
supplier |
string
|
The name of the supplier. |
A promise that resolves to the total pages of releases for the specified supplier.
Promise
# getTotalPagesByYear(year) → {Promise}
Get total pages releases per year.
Parameters:
Name | Type | Description |
---|---|---|
year |
string
|
The year of release. |
A promise that resolves to the total pages of releases for the specified year.
Promise