我正在尝试使用rest call
创建一个存储库键入:POST 网址:http://localhost:8080/jbpm-console/rest/repositories/ 身体: { “名”:“新回购”, “描述”:“新项目”, “username” 的:空, “密码”:空, “请求类型”:“新”, “gitURL”:空 } 授权:基本的Auth
但这次电话会议的结果是
WARN [org.jboss.resteasy.core.ExceptionHandler](默认任务-16)无法执行:javax.ws.rs.WebApplicationException:找不到HTTP 404 在org.guvnor.rest.backend.ProjectResource.checkOrganizationalUnitExistence(ProjectResource.java:589)[guvnor-rest-backend-6.2.0.Final.jar:6.2.0.Final] 在org.guvnor.rest.backend.ProjectResource.createOrCloneRepository(ProjectResource.java:194)[guvnor-rest-backend-6.2.0.Final.jar:6.2.0.Final] at org.guvnor.rest.backend.ProjectResource $ Proxy $ _ $$ _ WeldClientProxy.createOrCloneRepository(Unknown Source)[guvnor-rest-backend-6.2.0.Final.jar:6.2.0.Final] ....................
答案 0 :(得分:0)
不澄清文档的东西
你错过了组织单位(organizationalUnitName)。
这适用于我的
POST http://localhost:8080/jbpm-console/rest/repositories
标头: Content-Type application / json
体:
{
"name": "pruebaRest",
"description": "prueba",
"gitURL": "git://pruebaRest",
"userName":"youuser",
"password":"youpass",
"requestType":"new",
"organizationalUnitName": "demo"
}
如果它适合您,您可以关闭https://issues.jboss.org/browse/JBPM-4951;)
我希望能帮助