[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsas-java-dev
Subject:    [Dev] Create gitblit repositories using curl
From:       Janaka Ranabahu <janaka () wso2 ! com>
Date:       2013-03-30 3:26:54
Message-ID: CAHSFHmj27+vztRr9VPQRuMY=c_22HE8ULtg28LTuFT-uHGdMqQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Punnadi,

Please use the following sample curl request to create repositories using
curl. Please note that you have to set the following parameters in
gitblit.properties file to "true".

web.enableRpcManagement = true
web.enableRpcAdministration = true


 curl --user admin -X POST -H 'content-type: application/json;' --data '{
 "name": "libraries/xmlapache-renamed.git",  "description": "apache xmlrpc
client and server",  "owner": "admin",  "lastChange":
"2010-01-28T22:12:06Z",  "hasCommits": true,  "showRemoteBranches": false,
 "useTickets": false,  "useDocs": false,  "accessRestriction": "VIEW",
 "isFrozen": false,  "showReadme": false,  "federationStrategy":
"FEDERATE_THIS",  "federationSets": [    "libraries"  ],  "isFederated":
false,  "skipSizeCalculation": false,  "skipSummaryMetrics": false,
 "size": "102 KB"}' http://127.0.0.1:8080/rpc?req=CREATE_REPOSITORY

Thanks,
Janaka


-- 
*Janaka Ranabahu*
Member - Solutions Management Committee;
Senior Software Engineer; WSO2 Inc.; http://wso2.com*

E-mail: janaka@wso2.com
**M: **+94 718370861**

*Lean . Enterprise . Middleware

[Attachment #5 (text/html)]

<div dir="ltr">Hi Punnadi,<div><br></div><div>Please use the following sample curl \
request to create repositories using curl. Please note that you have to set the \
following parameters in gitblit.properties file to &quot;true&quot;.</div>

<div><br></div><div>web.enableRpcManagement = \
true<br></div><div>web.enableRpcAdministration = \
true<br></div><div><br></div><div><br></div><div><div> curl --user admin -X POST -H \
&#39;content-type: application/json;&#39; --data &#39;{  &quot;name&quot;: \
&quot;libraries/xmlapache-renamed.git&quot;,  &quot;description&quot;: &quot;apache \
xmlrpc client and server&quot;,  &quot;owner&quot;: &quot;admin&quot;,  \
&quot;lastChange&quot;: &quot;2010-01-28T22:12:06Z&quot;,  &quot;hasCommits&quot;: \
true,  &quot;showRemoteBranches&quot;: false,  &quot;useTickets&quot;: false,  \
&quot;useDocs&quot;: false,  &quot;accessRestriction&quot;: &quot;VIEW&quot;,  \
&quot;isFrozen&quot;: false,  &quot;showReadme&quot;: false,  \
&quot;federationStrategy&quot;: &quot;FEDERATE_THIS&quot;,  \
&quot;federationSets&quot;: [    &quot;libraries&quot;  ],  &quot;isFederated&quot;: \
false,  &quot;skipSizeCalculation&quot;: false,  &quot;skipSummaryMetrics&quot;: \
false,  &quot;size&quot;: &quot;102 KB&quot;}&#39; <a \
href="http://127.0.0.1:8080/rpc?req=CREATE_REPOSITORY">http://127.0.0.1:8080/rpc?req=CREATE_REPOSITORY</a></div>


<div><br></div><div style>Thanks,</div><div \
style>Janaka</div><div><br></div><div><br></div>-- <br><div dir="ltr"><div><font><b \
style="font-family:garamond,serif">Janaka \
Ranabahu</b><br></font></div><div><font><span \
style="font-family:garamond,serif;color:rgb(51,51,51)">Member - Solutions Management \
Committee; <br>

</span><span style="font-family:garamond,serif;color:rgb(51,51,51)">Senior Software \
Engineer; </span><span style="font-family:garamond,serif;color:rgb(51,51,51)">WSO2 \
Inc.; <a href="http://wso2.com/" style="color:rgb(17,85,204)" \
target="_blank">http://wso2.com</a></span><i style="font-family:garamond,serif"><br>

<br><font color="#333333">E-mail: </font><font color="#000000">janaka@<font><a \
href="http://wso2.com" target="_blank">wso2.com</a></font></font><br></i><i \
style="font-family:garamond,serif;color:rgb(51,51,51)">M: </i><i><font \
face="garamond, serif">+94 718370861</font></i><i \
style="font-family:garamond,serif;color:rgb(51,51,51)"><br>

<br></i><span style="font-family:garamond,serif;color:rgb(51,51,51)">Lean . \
Enterprise . Middleware</span></font><br></div></div> </div></div>



_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic