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: jan...@wso2.com
**M: **+94 718370861**

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

Reply via email to