Add original file and patched file resources to the Web API

Review Request #3008 — Created March 25, 2012 and submitted — Latest diff uploaded

Information

Review Board

Reviewers

Adds resources for retrieving the original file, and the patched file from the Web API.

These new resources are children of the File Diff Resource, and provide a way for external tools to retrieve full copies of source files from a review request.

If the file represented by the FileDiffResource is new, the link to the OriginalFileResource will be removed. Alternatively, if the file is deleted, the link to the PatchedFileResource will be removed.
Tested manually on local dev. Ran unit tests.
docs/manual/webapi/2.0/resources/index.txt
Revision a57a9116eb7558f916f3de4564e02ebfb80b7e77 New Change
17 lines
18
   file-attachment-list
18
   file-attachment-list
19
   file-attachment
19
   file-attachment
20
   file-diff-comment-list
20
   file-diff-comment-list
21
   file-diff-list
21
   file-diff-list
22
   file-diff
22
   file-diff

    
   
23
   original-file

    
   
24
   patched-file
23
   repository-info
25
   repository-info
24
   repository-list
26
   repository-list
25
   repository
27
   repository
26
   review-diff-comment-list
28
   review-diff-comment-list
27
   review-diff-comment
29
   review-diff-comment
40 lines
docs/manual/webapi/2.0/resources/original-file.txt
docs/manual/webapi/2.0/resources/patched-file.txt
docs/manual/webapi/2.0/resources/resource-tree.txt
reviewboard/diffviewer/models.py
reviewboard/webapi/resources.py
Loading...