openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SAP_WAPI_GET_METHODS:
    post:
      tags:
      - SWRC
      summary: 'Workflow Interfaces: Read Work Item Methods'
      operationId: /rfc/SAP_WAPI_GET_METHODS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: SAP System, Current Language
                USER:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: ABAP System, User Logon Name
                WORKITEM_ID:
                  type: integer
                  format: int64
                  description: Work Item ID
                MESSAGE_LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      MSG_TYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      LINE:
                        type: string
                        maxLength: 273
                        description: Text line for message
                MESSAGE_STRUCT:
                  type: array
                  items:
                    type: object
                    properties:
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                METHODS:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT_ID:
                        type: string
                        maxLength: 90
                        description: Object ID
                      METHOD:
                        type: string
                        maxLength: 32
                        description: Method
                      METHOD_TYP:
                        type: string
                        maxLength: 2
                        description: 'WAPI: Classification of method  enumValues: AF=Method After Execution of Leading Method (Synchronous),BE=Method Before Execution of Leading Method (Synchronous),LE=Leading Method,SM=Secondary Method (Runtime Asynchronous Call)'
                        enum:
                        - AF
                        - BE
                        - LE
                        - SM
                      OBJECT_NEW:
                        type: string
                        maxLength: 104
                        description: Local Persistent Object Reference - BOR Compatible Unstruct.
                      ELEMNAM:
                        type: string
                        maxLength: 32
                        description: Element ID (32 Characters, Unique, Not Language-Dependent)
                      ELEMDESC:
                        type: string
                        maxLength: 132
                        description: Text (length 132)
                      INSTID:
                        type: string
                        maxLength: 70
                        description: 'WAPI: Instance ID of Persistent Object Reference'
                      TYPEID:
                        type: string
                        maxLength: 32
                        description: 'WAPI: Type of Object in Persistent Object Reference'
                      CATID:
                        type: string
                        maxLength: 2
                        description: 'WAPI: Object Category in a Persistent Object Reference  enumValues: NN=Category (still) Not Known - Internal use only!!!,BC=Instances of Business Classes (ABAP Objects),BO=Instances of BOR Object Types,CL=Instances of ABAP Objects Classes - Internal Use Only!'
                        enum:
                        - NN
                        - BC
                        - BO
                        - CL
                      DESCRIPT:
                        type: string
                        maxLength: 20
                        description: Description of object type
                      SHORTTEXT:
                        type: string
                        maxLength: 80
                        description: Short description of object type
                      METHDESC:
                        type: string
                        maxLength: 132
                        description: Text (length 132)
                      DEF_ATTRIB:
                        type: string
                        maxLength: 50
                        description: Object Name
              required:
              - WORKITEM_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: integer
                    format: int32
                    description: Return Code (0, 1, 999)
                  MESSAGE_LINES:
                    type: array
                    items:
                      type: object
                      properties:
                        MSG_TYPE:
                          type: string
                          maxLength: 1
                          description: Message Type
                        LINE:
                          type: string
                          maxLength: 273
                          description: Text line for message
                  MESSAGE_STRUCT:
                    type: array
                    items:
                      type: object
                      properties:
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                  METHODS:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJECT_ID:
                          type: string
                          maxLength: 90
                          description: Object ID
                        METHOD:
                          type: string
                          maxLength: 32
                          description: Method
                        METHOD_TYP:
                          type: string
                          maxLength: 2
                          description: 'WAPI: Classification of method  enumValues: AF=Method After Execution of Leading Method (Synchronous),BE=Method Before Execution of Leading Method (Synchronous),LE=Leading Method,SM=Secondary Method (Runtime Asynchronous Call)'
                          enum:
                          - AF
                          - BE
                          - LE
                          - SM
                        OBJECT_NEW:
                          type: string
                          maxLength: 104
                          description: Local Persistent Object Reference - BOR Compatible Unstruct.
                        ELEMNAM:
                          type: string
                          maxLength: 32
                          description: Element ID (32 Characters, Unique, Not Language-Dependent)
                        ELEMDESC:
                          type: string
                          maxLength: 132
                          description: Text (length 132)
                        INSTID:
                          type: string
                          maxLength: 70
                          description: 'WAPI: Instance ID of Persistent Object Reference'
                        TYPEID:
                          type: string
                          maxLength: 32
                          description: 'WAPI: Type of Object in Persistent Object Reference'
                        CATID:
                          type: string
                          maxLength: 2
                          description: 'WAPI: Object Category in a Persistent Object Reference  enumValues: NN=Category (still) Not Known - Internal use only!!!,BC=Instances of Business Classes (ABAP Objects),BO=Instances of BOR Object Types,CL=Instances of ABAP Objects Classes - Internal Use Only!'
                          enum:
                          - NN
                          - BC
                          - BO
                          - CL
                        DESCRIPT:
                          type: string
                          maxLength: 20
                          description: Description of object type
                        SHORTTEXT:
                          type: string
                          maxLength: 80
                          description: Short description of object type
                        METHDESC:
                          type: string
                          maxLength: 132
                          description: Text (length 132)
                        DEF_ATTRIB:
                          type: string
                          maxLength: 50
                          description: Object Name
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
