How add method

English! place to talk about development, programming and coding
Post Reply
komarov
Znuny newbie
Posts: 2
Joined: 25 Jul 2016, 17:04
Znuny Version: 5 Free
Real Name: Leo Komarov
Location: Russia
Contact:

How add method

Post by komarov »

Hello, I want use method TransitionAction::TicketArticleCreate (http://otrs.github.io/doc/api/otrs/stab ... te.pm.html) from my external service, but I can`n include this method to Configuration file. This my wrong file:

How right include TransitionAction::TicketArticleCreate in configuration file. Thanks

Code: Select all

---
Debugger:
  DebugThreshold: debug
  TestMode: '0'
Description: Ticket Connector REST Sample
FrameworkVersion: 3.4.x git
Provider:
  Operation:
    TicketGet:
      Description: Retrieves Ticket data
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketGet
    TicketSearch:
      Description: Search for Tickets
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketSearch
  Transport:
    Config:
      KeepAlive: ''
      MaxLength: '100000000'
      RouteOperationMapping:
        // add routing
        TicketArticleCreate:
          RequestMethod:
          - POST
          Route: /TicketArticleCreate
        TicketGet:
          RequestMethod:
          - GET
          Route: /Ticket/:TicketID
        TicketSearch:
          RequestMethod:
          - GET
          Route: /Ticket
    Type: HTTP::REST
RemoteSystem: ''
// this I add new method
System:
    ProcessManagement:
        TransitionAction:
            TicketArticleCreate:
                Description: Search for Tickets
                MappingInbound: {}
                MappingOutbound: {}
                Type: TransitionAction::TicketArticleCreate
Requester:
  Transport:
    Type: ''
Post Reply