commit | author | age
|
48fe87
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
M |
2 |
<html> |
|
3 |
<head> |
|
4 |
<!-- Begin Header -->
|
|
5 |
<title>Gitblit</title>
|
|
6 |
<meta charset="utf-8">
|
|
7 |
<meta name="ROBOTS" content="INDEX">
|
|
8 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
9 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
10 |
|
|
11 |
<link rel="stylesheet" href="./bootstrap/css/bootstrap.css"> |
|
12 |
<link rel='shortcut icon' type='image/png' href='./gitblt-favicon.png' /> |
|
13 |
<link rel="stylesheet" href="./prettify/prettify.css" /> |
|
14 |
<!-- Google Plus Profile Page -->
|
|
15 |
<link rel="publisher" href="https://plus.google.com/114464678392593421684" />
|
|
16 |
<style type="text/css"> a.gpluspage { margin-top:3px;text-decoration: none; } </style> |
|
17 |
|
|
18 |
<!-- Google Plus One -->
|
|
19 |
<link rel="canonical" href="http://gitblit.com" />
|
|
20 |
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
|
|
21 |
<style type="text/css"> div.gplusone { margin-top:12px; } </style> |
|
22 |
|
|
23 |
<script src="./prettify/prettify.js"></script> |
|
24 |
<script src="./bootstrap/js/jquery.js"></script> |
|
25 |
<script src="./bootstrap/js/bootstrap.min.js"></script> |
|
26 |
</head> |
|
27 |
<body onload='prettyPrint()'> <!-- Navigation Bar -->
|
|
28 |
<div class="navbar navbar-fixed-top">
|
|
29 |
<div class="navbar-inner">
|
|
30 |
<div class="container">
|
|
31 |
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
|
32 |
<span class="icon-bar"></span>
|
|
33 |
<span class="icon-bar"></span>
|
|
34 |
<span class="icon-bar"></span>
|
|
35 |
</a>
|
|
36 |
<a class="brand" href="./"><img src="./gitblt_25_white.png" alt="Gitblit"></img></a>
|
|
37 |
<div class="nav-collapse">
|
|
38 |
<ul class="nav">
|
|
39 |
<li class='dropdown'> <!-- Menu --> |
|
40 |
<a class='dropdown-toggle' href='#' data-toggle='dropdown'>about<b class='caret'></b></a> |
|
41 |
<ul class='dropdown-menu'> |
|
42 |
<li><a href='index.html'>overview</a></li> |
|
43 |
<li><a href='features.html'>features</a></li> |
|
44 |
<li><a href='screenshots.html'>screenshots</a></li> |
|
45 |
</ul></li> <!-- End Menu --> |
|
46 |
<li class='dropdown'> <!-- Menu --> |
|
47 |
<a class='dropdown-toggle' href='#' data-toggle='dropdown'>documentation<b class='caret'></b></a> |
|
48 |
<ul class='dropdown-menu'> |
|
49 |
<li class='dropdown-submenu'> <!-- Submenu --> |
|
50 |
<a tabindex='-1' href='#'>Gitblit GO</a> |
|
51 |
<ul class='dropdown-menu'> |
|
52 |
<li><a href='setup_go.html'>setup GO</a></li> |
|
53 |
<li><a href='upgrade_go.html'>upgrade GO</a></li> |
|
54 |
</ul></li> <!-- End Submenu --> |
|
55 |
<li class='divider'></li> |
|
56 |
<li class='dropdown-submenu'> <!-- Submenu --> |
|
57 |
<a tabindex='-1' href='#'>Gitblit WAR</a> |
|
58 |
<ul class='dropdown-menu'> |
|
59 |
<li><a href='setup_war.html'>setup WAR</a></li> |
|
60 |
<li><a href='upgrade_war.html'>upgrade WAR</a></li> |
|
61 |
</ul></li> <!-- End Submenu --> |
|
62 |
<li class='divider'></li> |
|
63 |
<li class='dropdown-submenu'> <!-- Submenu --> |
|
64 |
<a tabindex='-1' href='#'>Server Configuration</a> |
|
65 |
<ul class='dropdown-menu'> |
|
66 |
<li><a href='administration.html'>administration</a></li> |
|
67 |
<li><a href='setup_authentication.html'>authentication</a></li> |
|
68 |
<li><a href='setup_hooks.html'>push hooks</a></li> |
|
69 |
<li><a href='setup_lucene.html'>lucene indexing</a></li> |
|
70 |
<li><a href='setup_proxy.html'>reverse proxies</a></li> |
|
71 |
<li><a href='setup_clientmenus.html'>client app menus</a></li> |
|
72 |
<li><a href='setup_bugtraq.html'>bugtraq</a></li> |
|
73 |
<li><a href='setup_mirrors.html'>mirrors</a></li> |
|
74 |
<li><a href='setup_scaling.html'>scaling</a></li> |
5287d2
|
75 |
<li><a href='setup_fail2ban.html'>fail2ban</a></li> |
48fe87
|
76 |
<li class='divider'></li> |
M |
77 |
<li><a href='setup_viewer.html'>Gitblit as a viewer</a></li> |
|
78 |
</ul></li> <!-- End Submenu --> |
|
79 |
<li class='divider'></li> |
|
80 |
<li class='dropdown-submenu'> <!-- Submenu --> |
|
81 |
<a tabindex='-1' href='#'>Client Usage</a> |
|
82 |
<ul class='dropdown-menu'> |
|
83 |
<li><a href='setup_transport_http.html'>using HTTP/HTTPS</a></li> |
|
84 |
<li><a href='setup_transport_ssh.html'>using SSH</a></li> |
|
85 |
<li><a href='eclipse_plugin.html'>using the Eclipse plugin</a></li> |
|
86 |
</ul></li> <!-- End Submenu --> |
|
87 |
<li class='divider'></li> |
|
88 |
<li class='dropdown-submenu'> <!-- Submenu --> |
|
89 |
<a tabindex='-1' href='#'>Tickets</a> |
|
90 |
<ul class='dropdown-menu'> |
|
91 |
<li><a href='tickets_overview.html'>overview</a></li> |
|
92 |
<li><a href='tickets_using.html'>using</a></li> |
|
93 |
<li><a href='tickets_barnum.html'>barnum</a></li> |
|
94 |
<li><a href='tickets_setup.html'>setup</a></li> |
|
95 |
<li><a href='tickets_replication.html'>replication & advanced administration</a></li> |
|
96 |
</ul></li> <!-- End Submenu --> |
|
97 |
<li class='divider'></li> |
|
98 |
<li class='dropdown-submenu'> <!-- Submenu --> |
|
99 |
<a tabindex='-1' href='#'>Plugins</a> |
|
100 |
<ul class='dropdown-menu'> |
|
101 |
<li><a href='plugins_overview.html'>overview</a></li> |
|
102 |
<li><a href='plugins_extensions.html'>extension points</a></li> |
|
103 |
</ul></li> <!-- End Submenu --> |
|
104 |
<li class='divider'></li> |
|
105 |
<li><a href='federation.html'>federation</a></li> |
|
106 |
<li class='divider'></li> |
|
107 |
<li><a href='properties.html'>settings</a></li> |
|
108 |
<li><a href='faq.html'>faq</a></li> |
|
109 |
<li class='divider'></li> |
|
110 |
<li><a href='design.html'>design</a></li> |
|
111 |
<li><a href='rpc.html'>rpc</a></li> |
|
112 |
</ul></li> <!-- End Menu --> |
|
113 |
<li class='dropdown'> <!-- Menu --> |
|
114 |
<a class='dropdown-toggle' href='#' data-toggle='dropdown'>releases<b class='caret'></b></a> |
|
115 |
<ul class='dropdown-menu'> |
|
116 |
<li><a href='releasenotes.html'>release notes</a></li> |
|
117 |
<li><a href='releases.html'>release history</a></li> |
|
118 |
</ul></li> <!-- End Menu --> |
|
119 |
<li class='dropdown'> <!-- Menu --> |
|
120 |
<a class='dropdown-toggle' href='#' data-toggle='dropdown'>downloads<b class='caret'></b></a> |
|
121 |
<ul class='dropdown-menu'> |
678348
|
122 |
<li><a href='http://dl.bintray.com/gitblit/releases/gitblit-1.7.1.zip'>Gitblit GO (Windows)</a></li> |
M |
123 |
<li><a href='http://dl.bintray.com/gitblit/releases/gitblit-1.7.1.tar.gz'>Gitblit GO (Linux/OSX)</a></li> |
|
124 |
<li><a href='http://dl.bintray.com/gitblit/releases/gitblit-1.7.1.war'>Gitblit WAR</a></li> |
48fe87
|
125 |
<li class='divider'></li> |
M |
126 |
<li><a href='https://registry.hub.docker.com/u/jmoger/gitblit/'>Gitblit GO (Docker)</a></li> |
|
127 |
<li class='divider'></li> |
|
128 |
<li><a href='http://plugins.gitblit.com'>Plugins Registry</a></li> |
|
129 |
<li class='divider'></li> |
678348
|
130 |
<li><a href='http://dl.bintray.com/gitblit/releases/manager-1.7.1.zip'>Gitblit Manager</a></li> |
M |
131 |
<li><a href='http://dl.bintray.com/gitblit/releases/fedclient-1.7.1.zip'>Federation Client</a></li> |
48fe87
|
132 |
<li class='divider'></li> |
678348
|
133 |
<li><a href='http://dl.bintray.com/gitblit/releases/gbapi-1.7.1.zip'>API Library</a></li> |
48fe87
|
134 |
<li class='divider'></li> |
M |
135 |
<li><a href='https://bintray.com/gitblit/releases/gitblit'>Bintray (1.4.0+)</a></li> |
|
136 |
<li><a href='https://code.google.com/p/gitblit/downloads/list?can=1'>GoogleCode (pre-1.4.0)</a></li> |
|
137 |
<li class='divider'></li> |
|
138 |
<li><a href='http://gitblit.github.io/gitblit-maven'>Maven Repository</a></li> |
|
139 |
</ul></li> <!-- End Menu --> |
|
140 |
<li class='dropdown'> <!-- Menu --> |
|
141 |
<a class='dropdown-toggle' href='#' data-toggle='dropdown'>links<b class='caret'></b></a> |
|
142 |
<ul class='dropdown-menu'> |
|
143 |
<li><a href='https://dev.gitblit.com'>dev.gitblit.com (self-hosted)</a></li> |
|
144 |
<li class='divider'></li> |
|
145 |
<li><a href='http://plugins.gitblit.com'>Plugins Registry</a></li> |
|
146 |
<li class='divider'></li> |
|
147 |
<li><a href='https://github.com/gitblit/gitblit'>Github</a></li> |
5287d2
|
148 |
<li><a href='https://github.com/gitblit/gitblit'>Issues</a></li> |
48fe87
|
149 |
<li><a href='http://groups.google.com/group/gitblit'>Discussion</a></li> |
M |
150 |
<li><a href='https://twitter.com/gitblit'>Twitter</a></li> |
|
151 |
<li><a href='http://www.ohloh.net/p/gitblit'>Ohloh</a></li> |
584328
|
152 |
<li class='divider'></li> |
M |
153 |
<li><a href='https://vimeo.com/86164723'>Gitblit Tickets screencast</a></li> |
|
154 |
<li><a href='https://asciinema.org/a/9342'>Gitblit SSH and Plugin Management asciicast</a></li> |
|
155 |
<li><a href='http://episodes.gitminutes.com/2014/05/gitminutes-29-james-moger-on-gitblit.html'>GitMinutes #29: James Moger on Gitblit</a></li> |
48fe87
|
156 |
<li class='divider'></li> |
M |
157 |
<li><a href='https://twitter.com/JamesMoger'>@JamesMoger</a></li> |
|
158 |
</ul></li> <!-- End Menu --> |
|
159 |
<li class='divider-vertical'></li> |
|
160 |
<li><a href='https://plus.google.com/114464678392593421684?prsrc=3' class='gpluspage'><img src='https://ssl.gstatic.com/images/icons/gplus-16.png' width='16' height='16 style='order: 0;'/></a></li><li><div class='gplusone'><g:plusone size='small' href='http://gitblit.com'></g:plusone></div></li>
|
|
161 |
</ul>
|
|
162 |
</div><!--/.nav-collapse -->
|
|
163 |
</div>
|
|
164 |
</div>
|
|
165 |
</div><!-- end Navigation Bar --> |
|
166 |
<div class='container'> |
|
167 |
<!-- Begin Markdown --> |
|
168 |
<h2 class="section" id='H1'><a href="#H1" class="sectionlink"><i class="icon-share-alt"> </i></a>Remote Management, Administration and Integration</h2><p><em>SINCE 0.7.0</em></p><p>Gitblit optionally allows a remote client to administer the Gitblit server. This client could be a Java-based tool or perhaps a tool written in another language.</p> |
|
169 |
<pre><code>web.enableRpcServlet=true |
|
170 |
web.enableRpcManagement=false |
|
171 |
web.enableRpcAdministration=false |
|
172 |
</code></pre><p><strong>https</strong> is strongly recommended because passwords are insecurely transmitted form your browser/rpc client using Basic authentication!</p><p>The Gitblit JSON RPC mechanism, like the Gitblit JGit servlet, syndication/feed servlet, etc, supports request-based authentication. Making an <em>admin</em> request will trigger Gitblit's basic authentication mechanism. Listing of repositories, generally, will not trigger this authentication mechanism unless <em>web.authenticateViewPages=true</em>. That means its possible to allow anonymous enumeration of repositories that are not <em>view restricted</em> or <em>clone restricted</em>. Of course, if credentials are provided then all private repositories that are available to the user account will be enumerated in the JSON response.</p> |
892246
|
173 |
<h3 class="section" id='H2'><a href="#H2" class="sectionlink"><i class="icon-share-alt"> </i></a>Gitblit Manager</h3><p>The Gitblit Manager is an example Java/Swing application that allows remote management (repository and user objects) and administration (server settings) of a Gitblit server.</p><p>This application uses a combination of RSS feeds and the JSON RPC interface, both of which are part of the <a href="http://code.google.com/p/gitblit/downloads/detail?name=%API%">Gitblit API</a> library, to present live information from a Gitblit server. Some JSON RPC methods from the utility class <code>com.gitblit.utils.RpcUtils</code> are not currently used by the Gitblit Manager.</p><p><strong>NOTE:</strong><br/>Gitblit Manager stores your login credentials <strong>INSECURELY</strong> in homedir/.gitblit/config.</p> |
48fe87
|
174 |
<h2 class="section" id='H3'><a href="#H3" class="sectionlink"><i class="icon-share-alt"> </i></a>RSS Query Interface</h2><p>At present, Gitblit does not yet support retrieving Git objects (commits, etc) via the JSON RPC mechanism. However, the repository/branch RSS feeds can be used to extract log/history information from a repository branch.</p><p>The Gitblit API includes methods for retrieving and interpreting RSS feeds. The Gitblit Manager uses these methods to allow branch activity monitoring and repository searching.</p> |
M |
175 |
<table class="table"> |
|
176 |
<tr><th>url parameter</th><th>default</th><th>description</th></tr> |
|
177 |
<tr><td colspan='3'><b>standard query</b></td></tr> |
|
178 |
<tr><td><em>repository</em></td><td><em>required</em></td><td>repository name is part of the url (see examples below)</td></tr> |
|
179 |
<tr><td>ot=</td><td><em>optional</em><br/>default: COMMIT</td><td>object type to return in results. COMMIT or TAG</td></tr> |
|
180 |
<tr><td>h=</td><td><em>optional</em><br/>default: HEAD</td><td>starting branch, ref, or commit id</td></tr> |
|
181 |
<tr><td>l=</td><td><em>optional</em><br/>default: web.syndicationEntries</td><td>maximum return count</td></tr> |
|
182 |
<tr><td>pg=</td><td><em>optional</em><br/>default: 0</td><td>page number for paging<br/>(offset into history = pagenumber*maximum return count)</td></tr> |
|
183 |
<tr><td colspan='3'><b>search query</b></td></tr> |
|
184 |
<tr><td>s=</td><td><em>required</em></td><td>search string</td></tr> |
|
185 |
<tr><td>st=</td><td><em>optional</em><br/>default: COMMIT</td><td>search type</td></tr> |
|
186 |
</table> |
|
187 |
<h3 class="section" id='H4'><a href="#H4" class="sectionlink"><i class="icon-share-alt"> </i></a>Example RSS Queries</h3> |
|
188 |
<pre><code>https://localhost:8443/feed/gitblit.git?l=50&h=refs/heads/master |
|
189 |
https://localhost:8443/feed/gitblit.git?l=50&h=refs/heads/master&s=documentation |
|
190 |
https://localhost:8443/feed/gitblit.git?l=50&h=refs/heads/master&s=james&st=author&pg=2 |
|
191 |
</code></pre> |
|
192 |
<h2 class="section" id='H5'><a href="#H5" class="sectionlink"><i class="icon-share-alt"> </i></a>JSON Remote Procedure Call (RPC) Interface</h2> |
|
193 |
<h3 class="section" id='H6'><a href="#H6" class="sectionlink"><i class="icon-share-alt"> </i></a>RPC Protocol Versions</h3> |
|
194 |
<table class="table"> |
|
195 |
<tbody> |
|
196 |
<tr><th>Release</th><th>Protocol Version</th></tr> |
|
197 |
<tr><td>Gitblit v0.7.0</td><td>1 (inferred version)</td></tr> |
|
198 |
<tr><td>Gitblit v0.8.0</td><td>2</td></tr> |
|
199 |
<tr><td>Gitblit v0.9.0 - v1.0.0</td><td>3</td></tr> |
|
200 |
<tr><td>Gitblit v1.1.0</td><td>4</td></tr> |
|
201 |
<tr><td>Gitblit v1.2.0</td><td>5</td></tr> |
|
202 |
<tr><td>Gitblit v1.3.1</td><td>6</td></tr> |
|
203 |
<tr><td>Gitblit v1.4.0</td><td>7</td></tr> |
|
204 |
<tr><td>Gitblit v1.6.0</td><td>8</td></tr> |
|
205 |
</tbody> |
|
206 |
</table> |
|
207 |
<h4 class="section" id='H7'><a href="#H7" class="sectionlink"><i class="icon-share-alt"> </i></a>Protocol Version 5</h4> |
|
208 |
<ul> |
|
209 |
<li><em>SET_REPOSITORY_MEMBERS</em> will reject all calls because this would elevate all discrete permissions to RW+<br/>Use <em>SET_REPOSITORY_MEMBER_PERMISSIONS</em> instead.</li> |
|
210 |
<li><em>SET_REPOSITORY_TEAMS</em> will reject all calls because this would elevate all discrete permissions to RW+<br/>Use <em>SET_REPOSITORY_TEAM_PERMISSIONS</em> instead.</li> |
|
211 |
</ul> |
|
212 |
<h3 class="section" id='H8'><a href="#H8" class="sectionlink"><i class="icon-share-alt"> </i></a>RPC Request and Response Types</h3> |
|
213 |
<table class="table"> |
|
214 |
<tr><th colspan='2'>url parameters</th><th rowspan='2'>required<br/>user<br/>permission</th><th rowspan='2'>protocol<br/>version</th><th colspan='2'>json</th></tr> |
|
215 |
<tr><th>req=</th><th>name=</th><th>post body</th><th>response body</th></tr> |
|
216 |
<tr><td colspan='6'><em>web.enableRpcServlet=true</em></td></tr> |
|
217 |
<tr><td>GET_PROTOCOL</td><td>-</td><td>-</td><td>2</td><td>-</td><td>Integer</td></tr> |
|
218 |
<tr><td>LIST_REPOSITORIES</td><td>-</td><td>-</td><td>1</td><td>-</td><td>Map<String, RepositoryModel></td></tr> |
|
219 |
<tr><td>LIST_BRANCHES</td><td>-</td><td>-</td><td>1</td><td>-</td><td>Map<String, List<String>></td></tr> |
|
220 |
<tr><td>LIST_SETTINGS</td><td>-</td><td><em>-</em></td><td>1</td><td>-</td><td>ServerSettings (basic keys)</td></tr> |
|
221 |
<tr><td>GET_USER</td><td>user name</td><td>-</td><td>6</td><td>-</td><td>UserModel</td></tr> |
|
222 |
<tr><td>FORK_REPOSITORY</td><td>repository name</td><td><em>-</em></td><td>8</td><td>-</td><td>-</td></tr> |
|
223 |
<tr><td colspan='6'><em>web.enableRpcManagement=true</em></td></tr> |
|
224 |
<tr><td>CREATE_REPOSITORY</td><td>repository name</td><td><em>admin</em></td><td>1</td><td>RepositoryModel</td><td>-</td></tr> |
|
225 |
<tr><td>EDIT_REPOSITORY</td><td>repository name</td><td><em>admin</em></td><td>1</td><td>RepositoryModel</td><td>-</td></tr> |
|
226 |
<tr><td>DELETE_REPOSITORY</td><td>repository name</td><td><em>admin</em></td><td>1</td><td>RepositoryModel</td><td>-</td></tr> |
|
227 |
<tr><td>LIST_USERS</td><td>-</td><td><em>admin</em></td><td>1</td><td>-</td><td>List<UserModel></td></tr> |
|
228 |
<tr><td>CREATE_USER</td><td>user name</td><td><em>admin</em></td><td>1</td><td>UserModel</td><td>-</td></tr> |
|
229 |
<tr><td>EDIT_USER</td><td>user name</td><td><em>admin</em></td><td>1</td><td>UserModel</td><td>-</td></tr> |
|
230 |
<tr><td>DELETE_USER</td><td>user name</td><td><em>admin</em></td><td>1</td><td>UserModel</td><td>-</td></tr> |
|
231 |
<tr><td>LIST_TEAMS</td><td>-</td><td><em>admin</em></td><td>2</td><td>-</td><td>List<TeamModel></td></tr> |
|
232 |
<tr><td>CREATE_TEAM</td><td>team name</td><td><em>admin</em></td><td>2</td><td>TeamModel</td><td>-</td></tr> |
|
233 |
<tr><td>EDIT_TEAM</td><td>team name</td><td><em>admin</em></td><td>2</td><td>TeamModel</td><td>-</td></tr> |
|
234 |
<tr><td>DELETE_TEAM</td><td>team name</td><td><em>admin</em></td><td>2</td><td>TeamModel</td><td>-</td></tr> |
|
235 |
<tr><td>LIST_REPOSITORY_MEMBERS</td><td>repository name</td><td><em>admin</em></td><td>1</td><td>-</td><td>List<String></td></tr> |
|
236 |
<tr><td><s>SET_REPOSITORY_MEMBERS</s></td><td><s>repository name</s></td><td><em><s>admin</s></em></td><td><s>1</s></td><td><s>List<String></s></td><td>-</td></tr> |
|
237 |
<tr><td>LIST_REPOSITORY_MEMBER_PERMISSIONS</td><td>repository name</td><td><em>admin</em></td><td>5</td><td>-</td><td>List<String></td></tr> |
|
238 |
<tr><td>SET_REPOSITORY_MEMBER_PERMISSIONS</td><td>repository name</td><td><em>admin</em></td><td>5</td><td>List<String></td><td>-</td></tr> |
|
239 |
<tr><td>LIST_REPOSITORY_TEAMS</td><td>repository name</td><td><em>admin</em></td><td>2</td><td>-</td><td>List<String></td></tr> |
|
240 |
<tr><td><s>SET_REPOSITORY_TEAMS</s></td><td><s>repository name</s></td><td><em><s>admin</s></em></td><td><s>2</s></td><td><s>List<String></s></td><td>-</td></tr> |
|
241 |
<tr><td>LIST_REPOSITORY_TEAM_PERMISSIONS</td><td>repository name</td><td><em>admin</em></td><td>5</td><td>-</td><td>List<String></td></tr> |
|
242 |
<tr><td>SET_REPOSITORY_TEAM_PERMISSIONS</td><td>repository name</td><td><em>admin</em></td><td>5</td><td>List<String></td><td>-</td></tr> |
|
243 |
<tr><td>LIST_SETTINGS</td><td>-</td><td><em>admin</em></td><td>1</td><td>-</td><td>ServerSettings (management keys)</td></tr> |
|
244 |
<tr><td>CLEAR_REPOSITORY_CACHE</td><td>-</td><td><em>-</em></td><td>4</td><td>-</td><td>-</td></tr> |
|
245 |
<tr><td>REINDEX_TICKETS</td><td>repository name</td><td><em>-</em></td><td>7</td><td>-</td><td>-</td></tr> |
|
246 |
<tr><td colspan='6'><em>web.enableRpcAdministration=true</em></td></tr> |
|
247 |
<tr><td>LIST_FEDERATION_REGISTRATIONS</td><td>-</td><td><em>admin</em></td><td>1</td><td>-</td><td>List<FederationModel></td></tr> |
|
248 |
<tr><td>LIST_FEDERATION_RESULTS</td><td>-</td><td><em>admin</em></td><td>1</td><td>-</td><td>List<FederationModel></td></tr> |
|
249 |
<tr><td>LIST_FEDERATION_PROPOSALS</td><td>-</td><td><em>admin</em></td><td>1</td><td>-</td><td>List<FederationProposal></td></tr> |
|
250 |
<tr><td>LIST_FEDERATION_SETS</td><td>-</td><td><em>admin</em></td><td>1</td><td>-</td><td>List<FederationSet></td></tr> |
|
251 |
<tr><td>LIST_SETTINGS</td><td>-</td><td><em>admin</em></td><td>1</td><td>-</td><td>ServerSettings (all keys)</td></tr> |
|
252 |
<tr><td>EDIT_SETTINGS</td><td>-</td><td><em>admin</em></td><td>1</td><td>Map<String, String></td><td>-</td></tr> |
|
253 |
<tr><td>LIST_STATUS</td><td>-</td><td><em>admin</em></td><td>1</td><td>-</td><td>ServerStatus (see example below)</td></tr> |
|
254 |
</table> |
|
255 |
<h3 class="section" id='H9'><a href="#H9" class="sectionlink"><i class="icon-share-alt"> </i></a>RPC/HTTP Response Codes</h3> |
|
256 |
<table class="table"> |
|
257 |
<tr><th>code</th><th>name</th><th>description</th></tr> |
|
258 |
<tr><td>200</td><td>success</td><td>Gitblit processed the request successfully</td></tr> |
|
259 |
<tr><td>401</td><td>unauthorized</td><td>Gitblit requires user credentials to process the request</td></tr> |
|
260 |
<tr><td>403</td><td>forbidden</td><td>Gitblit can not process the request for the supplied credentials</td></tr> |
|
261 |
<tr><td>405</td><td>method not allowed</td><td>Gitblit has disallowed the processing the specified request</td></tr> |
|
262 |
<tr><td>500</td><td>server error</td><td>Gitblit failed to process the request likely because the input object created a conflict</td></tr> |
|
263 |
<tr><td>501</td><td>unknown request</td><td>Gitblit does not recognize the RPC request type</td></tr> |
|
264 |
</table> |
5287d2
|
265 |
<h3 class="section" id='H10'><a href="#H10" class="sectionlink"><i class="icon-share-alt"> </i></a>Example: LIST_REPOSITORIES</h3><p><strong>url</strong>: <a href="https://localhost/rpc/?req=LIST_REPOSITORIES">https://localhost/rpc/?req=LIST_REPOSITORIES</a><br/><strong>response body</strong>: Map<String, RepositoryModel> where the map key is the clone url of the repository</p><p><pre>{ |
48fe87
|
266 |
"https://localhost/git/libraries/xmlapache.git": { |
M |
267 |
"name": "libraries/xmlapache.git", |
|
268 |
"description": "apache xmlrpc client and server", |
|
269 |
"owner": "admin", |
|
270 |
"lastChange": "2010-01-28T22:12:06Z", |
|
271 |
"hasCommits": true, |
|
272 |
"showRemoteBranches": false, |
|
273 |
"useTickets": false, |
|
274 |
"useDocs": false, |
|
275 |
"accessRestriction": "VIEW", |
|
276 |
"isFrozen": false, |
|
277 |
"showReadme": false, |
|
278 |
"federationStrategy": "FEDERATE_THIS", |
|
279 |
"federationSets": [ |
|
280 |
"libraries" |
|
281 |
], |
|
282 |
"isFederated": false, |
|
283 |
"skipSizeCalculation": false, |
|
284 |
"skipSummaryMetrics": false, |
|
285 |
"size": "102 KB" |
|
286 |
}, |
|
287 |
"https://localhost/git/libraries/smack.git": { |
|
288 |
"name": "libraries/smack.git", |
|
289 |
"description": "smack xmpp client", |
|
290 |
"owner": "admin", |
|
291 |
"lastChange": "2009-01-28T18:38:14Z", |
|
292 |
"hasCommits": true, |
|
293 |
"showRemoteBranches": false, |
|
294 |
"useTickets": false, |
|
295 |
"useDocs": false, |
|
296 |
"accessRestriction": "VIEW", |
|
297 |
"isFrozen": false, |
|
298 |
"showReadme": false, |
|
299 |
"federationStrategy": "FEDERATE_THIS", |
|
300 |
"federationSets": [], |
|
301 |
"isFederated": false, |
|
302 |
"skipSizeCalculation": false, |
|
303 |
"skipSummaryMetrics": false, |
|
304 |
"size": "4.8 MB" |
|
305 |
} |
|
306 |
} |
|
307 |
</pre></p> |
5287d2
|
308 |
<h3 class="section" id='H11'><a href="#H11" class="sectionlink"><i class="icon-share-alt"> </i></a>Example: EDIT_REPOSITORY (rename)</h3><p>The original repository name is specified in the <em>name</em> url parameter. The new name is set within the JSON object.</p><p><strong>url</strong>: <a href="https://localhost/rpc/?req=EDIT_REPOSITORY&name=libraries/xmlapache.git">https://localhost/rpc/?req=EDIT_REPOSITORY&name=libraries/xmlapache.git</a><br/><strong>post body</strong>: RepositoryModel</p><p><pre>{ |
48fe87
|
309 |
"name": "libraries/xmlapache-renamed.git", |
M |
310 |
"description": "apache xmlrpc client and server", |
|
311 |
"owner": "admin", |
|
312 |
"lastChange": "2010-01-28T22:12:06Z", |
|
313 |
"hasCommits": true, |
|
314 |
"showRemoteBranches": false, |
|
315 |
"useTickets": false, |
|
316 |
"useDocs": false, |
|
317 |
"accessRestriction": "VIEW", |
|
318 |
"isFrozen": false, |
|
319 |
"showReadme": false, |
|
320 |
"federationStrategy": "FEDERATE_THIS", |
|
321 |
"federationSets": [ |
|
322 |
"libraries" |
|
323 |
], |
|
324 |
"isFederated": false, |
|
325 |
"skipSizeCalculation": false, |
|
326 |
"skipSummaryMetrics": false, |
|
327 |
"size": "102 KB" |
|
328 |
} |
|
329 |
</pre></p> |
5287d2
|
330 |
<h3 class="section" id='H12'><a href="#H12" class="sectionlink"><i class="icon-share-alt"> </i></a>Example: LIST_USERS</h3><p><strong>url</strong>: <a href="https://localhost/rpc/?req=LIST_USERS">https://localhost/rpc/?req=LIST_USERS</a><br/><strong>response body</strong>: List<UserModel></p><p><pre>[ |
48fe87
|
331 |
{ |
M |
332 |
"username": "admin", |
|
333 |
"password": "admin", |
|
334 |
"canAdmin": true, |
|
335 |
"excludeFromFederation": true, |
|
336 |
"repositories": [] |
|
337 |
}, |
|
338 |
{ |
|
339 |
"username": "test", |
|
340 |
"password": "test", |
|
341 |
"canAdmin": false, |
|
342 |
"excludeFromFederation": false, |
|
343 |
"repositories": [ |
|
344 |
"libraries/xmlapache.git", |
|
345 |
"libraries/smack.git" |
|
346 |
] |
|
347 |
} |
|
348 |
] |
|
349 |
</pre></p> |
5287d2
|
350 |
<h3 class="section" id='H13'><a href="#H13" class="sectionlink"><i class="icon-share-alt"> </i></a>Example: LIST_SETTINGS</h3><p><strong>url</strong>: <a href="https://localhost/rpc/?req=LIST_SETTINGS">https://localhost/rpc/?req=LIST_SETTINGS</a><br/><strong>response body</strong>: ServerSettings</p><p><pre>{ |
48fe87
|
351 |
"settings": { |
M |
352 |
"web.siteName": { |
|
353 |
"name": "web.siteName", |
|
354 |
"currentValue": "", |
|
355 |
"defaultValue": "", |
|
356 |
"description": "Gitblit Web Settings\nIf blank Gitblit is displayed.", |
|
357 |
"since": "0.5.0", |
|
358 |
"caseSensitive": false, |
|
359 |
"restartRequired": false, |
|
360 |
"spaceDelimited": false |
|
361 |
}, |
|
362 |
"web.summaryCommitCount": { |
|
363 |
"name": "web.summaryCommitCount", |
|
364 |
"currentValue": "16", |
|
365 |
"defaultValue": "16", |
|
366 |
"description": "The number of commits to display on the summary page\nValue must exceed 0 else default of 16 is used", |
|
367 |
"since": "0.5.0", |
|
368 |
"caseSensitive": false, |
|
369 |
"restartRequired": false, |
|
370 |
"spaceDelimited": false |
|
371 |
} |
|
372 |
} |
|
373 |
} |
|
374 |
</pre></p> |
5287d2
|
375 |
<h3 class="section" id='H14'><a href="#H14" class="sectionlink"><i class="icon-share-alt"> </i></a>Example: LIST_STATUS</h3><p><strong>url</strong>: <a href="https://localhost/rpc/?req=LIST_STATUS">https://localhost/rpc/?req=LIST_STATUS</a><br/><strong>response body</strong>: ServerStatus</p><p><pre>{ |
48fe87
|
376 |
"bootDate": "2011-10-22T12:13:00Z", |
M |
377 |
"version": "0.7.0-SNAPSHOT", |
|
378 |
"releaseDate": "PENDING", |
|
379 |
"isGO": true, |
|
380 |
"systemProperties": { |
|
381 |
"file.encoding": "Cp1252", |
|
382 |
"java.home": "C:\\Program Files\\Java\\jdk1.6.0_26\\jre", |
|
383 |
"java.io.tmpdir": "C:\\Users\\JAMESM~1\\AppData\\Local\\Temp\\", |
|
384 |
"java.runtime.name": "Java(TM) SE Runtime Environment", |
|
385 |
"java.runtime.version": "1.6.0_26-b03", |
|
386 |
"java.vendor": "Sun Microsystems Inc.", |
|
387 |
"java.version": "1.6.0_26", |
|
388 |
"java.vm.info": "mixed mode", |
|
389 |
"java.vm.name": "Java HotSpot(TM) 64-Bit Server VM", |
|
390 |
"java.vm.vendor": "Sun Microsystems Inc.", |
|
391 |
"java.vm.version": "20.1-b02", |
|
392 |
"os.arch": "amd64", |
|
393 |
"os.name": "Windows 7", |
|
394 |
"os.version": "6.1" |
|
395 |
}, |
|
396 |
"heapAllocated": 128057344, |
|
397 |
"heapFree": 120399168, |
|
398 |
"heapSize": 1899560960, |
|
399 |
"servletContainer": "jetty/7.4.3.v20110701" |
|
400 |
} |
|
401 |
</pre> |
|
402 |
<!-- End Markdown --> |
678348
|
403 |
<div ><ul class="pager"><li class="previous"><a href="design.html">← design</a></li> </ul></div><footer class="footer"><p class="pull-right">generated 2015-11-23</p>
|
48fe87
|
404 |
<p>The content of this page is licensed under the <a href="http://creativecommons.org/licenses/by/3.0">Creative Commons Attribution 3.0 License</a>.</p> |
M |
405 |
</footer> |
|
406 |
</div> |
|
407 |
<!-- Google Analytics -->
|
|
408 |
<script type="text/javascript">
|
|
409 |
var _gaq = _gaq || [];
|
|
410 |
_gaq.push(['_setAccount', 'UA-24377072-1']);
|
|
411 |
_gaq.push(['_trackPageview']);
|
|
412 |
|
|
413 |
(function() {
|
|
414 |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
|
415 |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
416 |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
417 |
})();
|
|
418 |
</script> |
|
419 |
|
|
420 |
</body> |
|
421 |
</html> |