Add resources for fetching blobs & blob info
Review Request #8923 — Created May 5, 2017 and submitted — Latest diff uploaded
This patch adds two new resources:
GetBlobInfo
andGetBlobContent
.
The former returns whether or not a blob with the given ID exists and
the latter returns the content of a blob with the given ID as base64-
encoded data.
Retrieved a file via the API.
Verified invalid blob IDs, etc. resulted in a 404.
Changes between revision 3 and 4
orig
1
2
3
4
5
6
src/main/java/org/reviewboard/rbgerrit/BlobResource.java |
---|
src/main/java/org/reviewboard/rbgerrit/BlobsCollection.java |
---|
src/main/java/org/reviewboard/rbgerrit/FileResource.java |
---|
src/main/java/org/reviewboard/rbgerrit/FilesCollection.java |
---|
src/main/java/org/reviewboard/rbgerrit/GetBlobContent.java |
---|
src/main/java/org/reviewboard/rbgerrit/GetBlobInfo.java |
---|
src/main/java/org/reviewboard/rbgerrit/GetFileContent.java |
---|
src/main/java/org/reviewboard/rbgerrit/Module.java |
---|