openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWFMOD_GET_RULE_DEF:
    post:
      tags:
      - SWFMOD_WORKFLOW
      summary: Get all info for a given rule
      operationId: /rfc/SWFMOD_GET_RULE_DEF
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_OBJ_ID:
                  type: integer
                  format: int64
                  description: Object ID of Standard Object
                IV_OBJ_TYPE:
                  type: string
                  default: AC
                  maxLength: 2
                  description: Standard Object Type
                ET_HELP_VALUES:
                  type: array
                  items:
                    type: object
                    properties:
                      VALUE:
                        type: string
                        maxLength: 45
                        description: Extended Object ID
                      TEXT:
                        type: string
                        maxLength: 60
                        description: Short Text for Fixed Values
                ET_INPUT_PARAM:
                  type: array
                  items:
                    type: object
                    properties:
                      INPUT_NAME:
                        type: string
                        maxLength: 32
                        description: Element
                      SHORT_DESC:
                        type: string
                        maxLength: 20
                        description: Name
                ET_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
                ET_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
              required:
              - IV_OBJ_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EV_RETCODE:
                    type: integer
                    format: int32
                    description: Return Value, Return Value After ABAP Statements
                  EV_RULE_DESC:
                    type: array
                    items:
                      type: object
                      properties:
                        OTYPE:
                          type: string
                          maxLength: 2
                          description: Standard Object Type
                        OBJID:
                          type: integer
                          format: int64
                          description: Object ID of Standard Object
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        SUBTY:
                          type: string
                          maxLength: 4
                          description: Subtype
                        TABSEQNR:
                          type: integer
                          format: int64
                          description: Sequence Number in Table Part of Table Infotype
                        AEDTM:
                          type: string
                          format: date
                          description: Changed on
                        UNAME:
                          type: string
                          maxLength: 12
                          description: User Name
                        TLINE:
                          type: string
                          maxLength: 79
                          description: Line With Length 79 for Infotype 1002
                        TFORMAT:
                          type: string
                          maxLength: 2
                          description: Tag column
                  EV_RULE_NAME:
                    type: string
                    maxLength: 40
                    description: Object Name
                  ET_HELP_VALUES:
                    type: array
                    items:
                      type: object
                      properties:
                        VALUE:
                          type: string
                          maxLength: 45
                          description: Extended Object ID
                        TEXT:
                          type: string
                          maxLength: 60
                          description: Short Text for Fixed Values
                  ET_INPUT_PARAM:
                    type: array
                    items:
                      type: object
                      properties:
                        INPUT_NAME:
                          type: string
                          maxLength: 32
                          description: Element
                        SHORT_DESC:
                          type: string
                          maxLength: 20
                          description: Name
                  ET_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
                  ET_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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
