Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.

Commit 6e35a25

Browse files
committed
update oci discover extension response to match distribution spec
1 parent 9ff738f commit 6e35a25

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

manifest-referrers-api.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ shown below.
2222
GET /v2/{repository}/_oci/ext/discover
2323
```
2424

25-
The response SHOULD contain an extension with the name of `cncf.oras.referrers`
26-
and the `url` path where the referrers can be requested.
25+
The response SHOULD contain an extension with the name of `cncf.oras.referrers`, the `url` link to the documentation defining the extension,
26+
and an `endpoints` list containing the path where the referrers can be requested.
2727

2828
```http
2929
200 OK
@@ -34,8 +34,11 @@ Content-Type: application/json
3434
"extensions": [
3535
{
3636
"name": "cncf.oras.referrers",
37+
"url": "https://github.com/opencontainers/distribution-spec/blob/main/extensions/_oci.md",
3738
"description": "ORAS referrers listing API",
38-
"url": "_oras/artifacts/referrers"
39+
"endpoints": [
40+
"_oras/artifacts/referrers"
41+
]
3942
}
4043
]
4144
}

0 commit comments

Comments
 (0)