You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec.md
+50-17Lines changed: 50 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -496,7 +496,7 @@ When using the `last` query parameter, the `n` parameter is OPTIONAL.
496
496
Clients should see [client-implementation.md](client-implementation.md) for more details on implementing this.
497
497
Registries should see [upgrading.md](upgrading.md) before enabling this.*
498
498
499
-
To fetch the list of referrers, perform a `GET` request to a path in the following format: `/v2/<name>/referrers/<reference>` <sup>[end-12](#endpoints)</sup>
499
+
To fetch the list of referrers, perform a `GET` request to a path in the following format: `/v2/<name>/referrers/<reference>` <sup>[end-12a](#endpoints)</sup>
500
500
501
501
`<name>` is the namespace of the repository.
502
502
Assuming a repository is found, this request MUST return a `200 OK` response code.
@@ -535,6 +535,38 @@ Upon success, the response MUST be a json body in the following format (an index
535
535
A `Link` header MUST be included in the response when additional results are available.
536
536
The `Link` header MUST be set according to [RFC5988](https://www.rfc-editor.org/rfc/rfc5988.html) with the Relation Type `rel="next"`.
537
537
538
+
The registry SHOULD support filtering on `artifactType`<sup>[end-12b](#endpoints)</sup>.
539
+
If filtering is requested and applied, the response MUST include an annotation (`org.opencontainers.references.filtersApplied`) denoting that an `artifactType` filter was applied.
540
+
541
+
Example request with filtering:
542
+
```
543
+
GET /v2/<name>/referrers/<ref>?artifactType=application/vnd.example.icecream.v1
Copy file name to clipboardExpand all lines: upgrading.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This document describes how registries should add support for new APIs and featu
4
4
5
5
## Referrers API
6
6
7
-
The Referrers API here is described by [Listing Referrers](spec.md#listing-referrers) and [end-12](spec.md#endpoints).
7
+
The Referrers API here is described by [Listing Referrers](spec.md#listing-referrers) and [end-12a](spec.md#endpoints).
8
8
When registries add support for the Referrers API, this API needs to account for manifests that were pushed before the API was available using the [Client Implementation's tag schema](client-implementation.md#referrers-api).
9
9
10
10
1. Registries MUST include preexisting Image and Artifact manifests that are listed in an Index tagged with the tag schema and have a valid Refers field.
0 commit comments