跳转到内容

Get the curated index

GET
/index.json
curl --request GET \
--url https://preview-api.dshuniverse.com/index.json

Returns the curated distribution index for dsh. Eligible scanned entries may be included according to the site configuration.

If-None-Match

The ETag from a previous response.

string

The ETag from a previous response.

A dsh format 1 plugin index.

Media typeapplication/json
object
format
required
number
Allowed values: 1
title
required
string
>= 1 characters
generatedAt
required
string format: date-time
plugins
required
Array<object>
object
name
required
string
>= 1 characters
title
string
>= 1 characters
description
string
>= 1 characters
versions
required
Array<object>
>= 1 items
object
version
required
string
<= 256 characters /^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/
publishTimestamp
required
integer
engines
object
dsh
required
string
source
required
One of:
object
type
required
string
Allowed values: npm
x-dshu
required
object
id
required
string
>= 1 characters
tier
required
string
Allowed values: listed scanned curated flagged
tierVersion
required
string
>= 1 characters
scannedAt
required
string | null format: date-time
url
required
string format: uri
categories
required
Array<string>
capabilities
required
Array<string> | null
Allowed values: network process env secret-paths install-script dynamic-code

Example

{
"format": 1,
"plugins": [
{
"versions": [
{
"source": {
"type": "npm"
}
}
],
"x-dshu": {
"tier": "listed",
"capabilities": [
"network"
]
}
}
]
}
ETag
string

Validator for this representation of the index.

Cache-Control
string

The index can be cached for 30 seconds and must then be revalidated.

Access-Control-Allow-Origin
string
Allowed value: *

The index can be read from any origin.

Access-Control-Expose-Headers
string

Allows browser clients to read the ETag and data license headers.

Link
string

The data license link with rel=“license”.

The index has not changed. No response body.

ETag
string

Validator for this representation of the index.

Cache-Control
string

The index can be cached for 30 seconds and must then be revalidated.

Access-Control-Allow-Origin
string
Allowed value: *

The index can be read from any origin.

Access-Control-Expose-Headers
string

Allows browser clients to read the ETag and data license headers.

Link
string

The data license link with rel=“license”.

The index is temporarily unavailable.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}