有人知道 OTRS 的一个好的 Java 客户端吗,或者我可以指向一些信息页面来编写我自己的客户端吗?我对 OTRS 完全陌生,但我听说有一个外部接口(Web 服务)可以与 java REST 客户端一起完成大部分 OTRS 工作。
有人可以链接一些信息页面吗?也许是一个如何使用 OTRS 创建 REST WS 的示例以及一些 curl 示例如何使用它?
已经找到的链接:
- https://github.com/gtudan/OTRS-Client --> 维护级别低
- https://www.otrs.com/otrs-help-desk-software-unterstuetzt-jetzt-rest/?lang=de
- http://otrs.github.io/doc/manual/admin/stable/en/html/genericinterface.htmls
- ...
我用这个 yaml 文件创建了一个 web 服务:
---
Debugger:
DebugThreshold: debug
TestMode: '0'
Description: The description of WS
FrameworkVersion: 4.0.5
Provider:
Operation:
TicketGet:
Description: ''
MappingInbound:
Type: Simple
MappingOutbound:
Type: Simple
Type: Ticket::TicketGet
Transport:
Config:
KeepAlive: ''
MaxLength: '20000000'
RouteOperationMapping:
TicketGet:
Route: /Ticket/:TicketID
Type: HTTP::REST
RemoteSystem: ''
Requester:
Transport:
Type: ''
然后我尝试卷曲到 WS:
curl -i -H "Content-Type: application/json" -d {UserLogin:"user",Password="userpass",Ticket={Title="test"}} http://localhost/otrs/nph-genericinterface.pl/Webservice/Test/Ticket/1
但它不起作用。