diff options
author | Sander Striker <s.striker@striker.nl> | 2020-05-04 11:24:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 11:24:47 +0200 |
commit | 9ae473ea579681c023b19bd2f39f2f11ef4bc6a8 (patch) | |
tree | 09cbc4cc22fc29a39ada08aafeeed8e2a3695e92 /build | |
parent | 0b2ba96c5ffb50e06cf278e7f447abade150feed (diff) | |
download | bazelbuild-remote-apis-9ae473ea579681c023b19bd2f39f2f11ef4bc6a8.tar.gz |
[remote asset api] Clarify resource_type (#126)
* build/bazel/remote/asset/v1/qualifiers.md
Clarify resource_type
Closes #118.
Diffstat (limited to 'build')
-rw-r--r-- | build/bazel/remote/asset/v1/qualifiers.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/build/bazel/remote/asset/v1/qualifiers.md b/build/bazel/remote/asset/v1/qualifiers.md index dcea789..65fb655 100644 --- a/build/bazel/remote/asset/v1/qualifiers.md +++ b/build/bazel/remote/asset/v1/qualifiers.md @@ -7,6 +7,26 @@ The following standard qualifier `name`s are defined: * `resource_type`: This describes the type of resource. + File assests should use an existing [media type](https://www.iana.org/assignments/media-types/media-types.xhtml). + + Git repositories should use `application/x-git`. + + Example: + ```json + // (FetchDirectoryRequest proto) + { + "uris": [ + "https://github.com/bazelbuild/remote-apis.git" + ], + "qualifiers": [ + { + "name": "resource_type", + "value": "application/x-git" + } + ] + } + ``` + * `checksum.sri`: The value represents a [Subresource Integrity](https://www.w3.org/TR/SRI/) checksum of the content. |