Crucible 2.2 : Review Service - Review Items
This page last changed on Nov 19, 2009 by edawson.
On this page: Review ItemsAdd Revision to ReviewPOST /reviews-v1/<review id>/reviewitems Add a revision to a review. Send a reviewItem with the repository name, and from and to paths and revisions specified. Other values can be omitted. This returns the completed reviewItem structure. Status Code: Get Review ItemsGET /reviews-v1/<review id>/reviewitems Get a list of the items in a review. Status Code: Example XML Return Data: <reviewItems> <reviewItem> <permId> <id>CFR-1</id> </permId> <authorName>tomd</authorName> <commitDate>2008-01-29T14:41:43.202+1100</commitDate> <commitType>Modified</commitType> <fileType>File</fileType> <toContentUrl>/cru/CR-4/rawcontent/53/foo.txt</toContentUrl> <fromPath>foo.txt</fromPath> <fromRevision>21</fromRevision> <repositoryName>local</repositoryName> <toContentUrl>/cru/CR-4/rawcontent/51/foo.txt</toContentUrl> <toPath>foo.txt</toPath> <toRevision>22</toRevision> </reviewItem> ... more reviewItems ... </reviewItems> {"reviewItems":{"reviewItem": [ {"permId":{"id":"CFR-4"}, "authorName":"ervzijst", "commitDate":"2008-10-16T17:19:52.119+1000", "commitType":"Modified", "fileType":"File", "fromContentUrl":"\/cru\/CR-4\/rawcontent\/53\/foo.txt", "fromPath":"path\/to\/file.txt", "fromRevision":"3", "repositoryName":"Local", "toContentUrl":"\/cru\/CR-4\/rawcontent\/51\/foo.txt", "toPath":"path\/to\/file.txt", "toRevision":"13" }, ... more reviewItems ... ] }} Get Single Revision DetailsGET /reviews-v1/<review id>/reviewitems/<review item id> Get the details of a single revision in a review. Returns the reviewItem structure for the item. Status Code: 200 (OK) on success. Remove Revision from ReviewDELETE /reviews-v1/<review id>/reviewitems/<review item id> Remove a revision from a review. Status Code: 204 (No Content) on success. |
![]() |
Document generated by Confluence on Feb 23, 2010 02:04 |