REST Issue

Moderator: crythias

Locked
mgjoe
Znuny newbie
Posts: 1
Joined: 22 Nov 2012, 09:38
Znuny Version: 4.0.6

REST Issue

Post by mgjoe »

Hello, guys, need your help.

OTRS ignores the body of the POST/PUT request while working with REST. Requests without body (GET, DELETE) work properly.

Error:

{"Error":{"ErrorCode":"TicketCreate.MissingParameter","ErrorMessage":"TicketCreate: Ticket parameter is missing or not valid!"}}

REST Config:

---

Code: Select all

Debugger:
  DebugThreshold: debug
  TestMode: '0'
Description: ''
FrameworkVersion: 4.0.6
Provider:
  Operation:
    Create:
      Description: ''
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketCreate
    Find:
      Description: ''
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketSearch
    Read:
      Description: ''
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketGet
  Transport:
    Config:
      KeepAlive: ''
      MaxLength: '100000000'
      RouteOperationMapping:
        Create:
          RequestMethod:
          - POST
          Route: /Ticket
        Find:
          RequestMethod:
          - GET
          Route: /Ticket
        Read:
          RequestMethod:
          - GET
          Route: /Ticket/:TicketID
    Type: HTTP::REST
RemoteSystem: ''
Requester:
  Transport:
    Type: ''
Last edited by crythias on 24 Mar 2015, 15:40, edited 1 time in total.
Reason: [code] tags for sanity.
Locked