Add REST APIs to test submit_rule and submit_filter

These are available over SSH, but not on HTTP. Make them available
on HTTP with REST API views on the revision resource. Use the REST
implementations to back the SSH commands, so the implementation is
not duplicated.

To match the REST API the SSH test-submit rule command no longer
accepts a format parameter. Output is in pretty formatted JSON.

Change-Id: I6a57b4561067eaa32d407a426c95ea61a96f1948
This commit is contained in:
Shawn Pearce
2013-03-04 07:54:09 -08:00
parent 1e1af68b34
commit b1f730b894
14 changed files with 635 additions and 312 deletions

View File

@@ -31,7 +31,7 @@ import com.google.inject.Provider;
import java.util.Collections;
import java.util.List;
class Revisions implements ChildCollection<ChangeResource, RevisionResource> {
public class Revisions implements ChildCollection<ChangeResource, RevisionResource> {
private final DynamicMap<RestView<RevisionResource>> views;
private final Provider<ReviewDb> dbProvider;