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

Commit

Permalink
update oci discover extension response to match distribution spec
Browse files Browse the repository at this point in the history
  • Loading branch information
akashsinghal committed Apr 20, 2022
1 parent 9ff738f commit 6e35a25
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions manifest-referrers-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ shown below.
GET /v2/{repository}/_oci/ext/discover
```

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

```http
200 OK
Expand All @@ -34,8 +34,11 @@ Content-Type: application/json
"extensions": [
{
"name": "cncf.oras.referrers",
"url": "https://github.com/opencontainers/distribution-spec/blob/main/extensions/_oci.md",
"description": "ORAS referrers listing API",
"url": "_oras/artifacts/referrers"
"endpoints": [
"_oras/artifacts/referrers"
]
}
]
}
Expand Down

0 comments on commit 6e35a25

Please sign in to comment.