Get the curated index
const url = 'https://preview-api.dshuniverse.com/index.json';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://preview-api.dshuniverse.com/index.jsonReturns the curated distribution index for dsh. Eligible scanned entries may be included according to the site configuration.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”The ETag from a previous response.
The ETag from a previous response.
Responses
Section titled “Responses”A dsh format 1 plugin index.
object
object
object
Example
{ "format": 1, "plugins": [ { "versions": [ { "source": { "type": "npm" } } ], "x-dshu": { "tier": "listed", "capabilities": [ "network" ] } } ]}Headers
Section titled “Headers”Validator for this representation of the index.
The index can be cached for 30 seconds and must then be revalidated.
The index can be read from any origin.
Allows browser clients to read the ETag and data license headers.
The data license link with rel=“license”.
The index has not changed. No response body.
Headers
Section titled “Headers”Validator for this representation of the index.
The index can be cached for 30 seconds and must then be revalidated.
The index can be read from any origin.
Allows browser clients to read the ETag and data license headers.
The data license link with rel=“license”.
The index is temporarily unavailable.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}