openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_RECORD_GETLIST:
    post:
      tags:
      - SRM_BAPI_RECORD
      summary: Display List of Records
      operationId: /rfc/BAPI_RECORD_GETLIST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                MAX_HITS:
                  type: integer
                  format: int32
                  description: Maximum No. of Hits to be Delivered
                RMS_ID:
                  type: string
                  maxLength: 32
                  description: Records Management System ID
                SPS_ID:
                  type: string
                  maxLength: 32
                  description: Element Type
                PROPERTY_SELECTION:
                  type: array
                  items:
                    type: object
                    properties:
                      PROPNAME:
                        type: string
                        maxLength: 64
                        description: Property Name
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'Inclusion/exclusion criterion SIGN for range tables  enumValues: E=Exclusive of defined values/range,I=Inclusive of defined values/range'
                        enum:
                        - E
                        - I
                      OPTION:
                        type: string
                        maxLength: 2
                        description: 'Selection operator OPTION for range tables  enumValues: NB=Outside lower and upper value (x < Low und High < x ),NP=Does not contain the pattern,LE=less than or equal to (<= Low),EQ=equal to (= Low),BT=Between lower and upper value (Low <= x <= High),CP=Contains the pattern,GT=greater than than (> Low),NE=not equal to (<> Low),LT=less than than (< Low),GE=greater than or equal to  (>=Low)'
                        enum:
                        - NB
                        - NP
                        - LE
                        - EQ
                        - BT
                        - CP
                        - GT
                        - NE
                        - LT
                        - GE
                      PROPVAL_LO:
                        type: string
                        maxLength: 255
                        description: Property Value
                      PROPVAL_HI:
                        type: string
                        maxLength: 255
                        description: Property Value
                RESULTING_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECTID:
                        type: string
                        maxLength: 32
                        description: GUID
                      DOCCLASS:
                        type: string
                        maxLength: 10
                        description: Storage Location of Document in SRM (Content Model)
                      DOCUMENTID:
                        type: string
                        maxLength: 255
                        description: Document ID
                      DESCR:
                        type: string
                        maxLength: 255
                        description: Description
              required:
              - RMS_ID
              - SPS_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      NUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      MESSAGE:
                        type: string
                        maxLength: 220
                        description: Message Text
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      MESSAGE_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      PARAMETER:
                        type: string
                        maxLength: 32
                        description: Parameter Name
                      ROW:
                        type: integer
                        format: int32
                        description: Lines in parameter
                      FIELD:
                        type: string
                        maxLength: 30
                        description: Field in parameter
                      SYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system from which message originates
                  PROPERTY_SELECTION:
                    type: array
                    items:
                      type: object
                      properties:
                        PROPNAME:
                          type: string
                          maxLength: 64
                          description: Property Name
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'Inclusion/exclusion criterion SIGN for range tables  enumValues: E=Exclusive of defined values/range,I=Inclusive of defined values/range'
                          enum:
                          - E
                          - I
                        OPTION:
                          type: string
                          maxLength: 2
                          description: 'Selection operator OPTION for range tables  enumValues: NB=Outside lower and upper value (x < Low und High < x ),NP=Does not contain the pattern,LE=less than or equal to (<= Low),EQ=equal to (= Low),BT=Between lower and upper value (Low <= x <= High),CP=Contains the pattern,GT=greater than than (> Low),NE=not equal to (<> Low),LT=less than than (< Low),GE=greater than or equal to  (>=Low)'
                          enum:
                          - NB
                          - NP
                          - LE
                          - EQ
                          - BT
                          - CP
                          - GT
                          - NE
                          - LT
                          - GE
                        PROPVAL_LO:
                          type: string
                          maxLength: 255
                          description: Property Value
                        PROPVAL_HI:
                          type: string
                          maxLength: 255
                          description: Property Value
                  RESULTING_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJECTID:
                          type: string
                          maxLength: 32
                          description: GUID
                        DOCCLASS:
                          type: string
                          maxLength: 10
                          description: Storage Location of Document in SRM (Content Model)
                        DOCUMENTID:
                          type: string
                          maxLength: 255
                          description: Document ID
                        DESCR:
                          type: string
                          maxLength: 255
                          description: Description
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
