Add support in the API for admins to create repositories.
Review Request #2137 — Created Feb. 18, 2011 and submitted — Latest diff uploaded
Add support in the API for admins to create repositories. This provides HTTP POST/PUT/DELETE support for /api/repositories, allowing administrators to create, modify, or "delete" (hide) repositories. The API can return a number of errors, based on configuration problems or host access problems (such as bad/unknown SSH keys or unknown certificates). In the cases where it's host-related information that needs to be verified, the API can respond to the error by repeating the request and sending trust_host=1. Unit tests were added to test creating, updating, and deleting repositories, both on global sites and LocalSites, and testing the various error results.
All the unit tests pass.
Diff Revision 1 (Latest)
docs/manual/webapi/2.0/errors/205-missing-repository.txt |
---|
docs/manual/webapi/2.0/errors/213-server-config-error.txt |
---|
docs/manual/webapi/2.0/errors/214-bad-host-key.txt |
---|
docs/manual/webapi/2.0/errors/215-unverified-host-key.txt |
---|
docs/manual/webapi/2.0/errors/216-unverified-host-cert.txt |
---|
docs/manual/webapi/2.0/errors/217-missing-user-key.txt |
---|
docs/manual/webapi/2.0/errors/218-repo-authentication-error.txt |
---|
docs/manual/webapi/2.0/errors/index.txt |
---|
reviewboard/scmtools/managers.py |
---|
reviewboard/scmtools/models.py |
---|
reviewboard/site/models.py |
---|
reviewboard/webapi/errors.py |
---|
reviewboard/webapi/resources.py |
---|
reviewboard/webapi/tests.py |
---|