openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSDMESC_DB_MODEL_GETLASTMODEL:
    post:
      tags:
      - RSDMESC_DB_SCORE
      operationId: /rfc/RSDMESC_DB_MODEL_GETLASTMODEL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ET_ATTR_KYFS:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTRIBUTE:
                        type: string
                        maxLength: 30
                        description: Master data attribute
                      ATTRTEXT:
                        type: string
                        maxLength: 60
                        description: Long description
                      QUERY:
                        type: string
                        maxLength: 60
                        description: Query (Cube/Compid) or View ID (30 Characters)
                      KYF1:
                        type: string
                        maxLength: 30
                        description: Key Figure (Guid)
                      KYF1TEXT:
                        type: string
                        maxLength: 60
                        description: Long description
                      KYF2:
                        type: string
                        maxLength: 30
                        description: Key Figure (Guid)
                      KYF2TEXT:
                        type: string
                        maxLength: 60
                        description: Long description
                      IOBJNM1:
                        type: string
                        maxLength: 30
                        description: InfoObject
                      IOBJNM2:
                        type: string
                        maxLength: 30
                        description: InfoObject
                ET_ATTR_WEIGHT:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTRIBUTE:
                        type: string
                        maxLength: 30
                        description: Master data attribute
                      WEIGHT:
                        type: string
                        maxLength: 60
                        description: (Partial) Score
                ET_KEYS:
                  type: array
                  items:
                    type: object
                    properties:
                      IOBJNM:
                        type: string
                        maxLength: 30
                        description: InfoObject
                      DESCRIPTION:
                        type: string
                        maxLength: 60
                        description: Text
                ET_PARTIAL_SCORES:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTRIBUTE:
                        type: string
                        maxLength: 30
                        description: Master data attribute
                      DIM1:
                        type: string
                        maxLength: 30
                        description: InfoObject
                      OPT1:
                        type: string
                        maxLength: 2
                        description: 'Selection criteria: OPTION'
                      LOW1:
                        type: string
                        maxLength: 45
                        description: 'Selection criteria: From value'
                      HIGH1:
                        type: string
                        maxLength: 45
                        description: 'Selection criteria: To value'
                      DIM2:
                        type: string
                        maxLength: 30
                        description: InfoObject
                      OPT2:
                        type: string
                        maxLength: 2
                        description: 'Selection criteria: OPTION'
                      LOW2:
                        type: string
                        maxLength: 45
                        description: 'Selection criteria: From value'
                      HIGH2:
                        type: string
                        maxLength: 45
                        description: 'Selection criteria: To value'
                      VALUE:
                        type: string
                        maxLength: 60
                        description: (Partial) Score
                ET_RETURN:
                  type: array
                  items:
                    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
                ET_VAR:
                  type: array
                  items:
                    type: object
                    properties:
                      QUERY:
                        type: string
                        maxLength: 60
                        description: Query (Cube/Compid) or View ID (30 Characters)
                      VAR_NAM:
                        type: string
                        maxLength: 8
                        description: 'ABAP/4: Name of SELECT-OPTION / PARAMETER'
                      VARSIGN:
                        type: string
                        maxLength: 1
                        description: 'SIGN field in creation of SELECT-OPTIONS tables  enumValues: E=Exclude specified values,I=Select specified values'
                        enum:
                        - E
                        - I
                      VAROPTION:
                        type: string
                        maxLength: 2
                        description: 'OPTION field in structure of SELECT-OPTIONS tables  enumValues: EQ=Equal: Single value,LT=Less Than: Everything < value in field LOW,NE=Not Equal: Everything apart from the specified single value,GT=Greater Than: Everything > value in field LOW,NP=Not Contains Pattern: Masked input: Reject pattern,NB=Not Between: Everything outside the range,CP=Contains Pattern: Masked input: Find pattern,LE=Less or Equal: Everything <= value in field LOW,GE=Greater or Equal >=
                          value in field LOW,BT=Between: Range of values'
                        enum:
                        - EQ
                        - LT
                        - NE
                        - GT
                        - NP
                        - NB
                        - CP
                        - LE
                        - GE
                        - BT
                      VARLOW:
                        type: string
                        maxLength: 64
                        description: Member Name
                      VARHIGH:
                        type: string
                        maxLength: 64
                        description: Member Name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_DESCRIPTION:
                    type: string
                    maxLength: 60
                  ET_ATTR_KYFS:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTRIBUTE:
                          type: string
                          maxLength: 30
                          description: Master data attribute
                        ATTRTEXT:
                          type: string
                          maxLength: 60
                          description: Long description
                        QUERY:
                          type: string
                          maxLength: 60
                          description: Query (Cube/Compid) or View ID (30 Characters)
                        KYF1:
                          type: string
                          maxLength: 30
                          description: Key Figure (Guid)
                        KYF1TEXT:
                          type: string
                          maxLength: 60
                          description: Long description
                        KYF2:
                          type: string
                          maxLength: 30
                          description: Key Figure (Guid)
                        KYF2TEXT:
                          type: string
                          maxLength: 60
                          description: Long description
                        IOBJNM1:
                          type: string
                          maxLength: 30
                          description: InfoObject
                        IOBJNM2:
                          type: string
                          maxLength: 30
                          description: InfoObject
                  ET_ATTR_WEIGHT:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTRIBUTE:
                          type: string
                          maxLength: 30
                          description: Master data attribute
                        WEIGHT:
                          type: string
                          maxLength: 60
                          description: (Partial) Score
                  ET_KEYS:
                    type: array
                    items:
                      type: object
                      properties:
                        IOBJNM:
                          type: string
                          maxLength: 30
                          description: InfoObject
                        DESCRIPTION:
                          type: string
                          maxLength: 60
                          description: Text
                  ET_PARTIAL_SCORES:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTRIBUTE:
                          type: string
                          maxLength: 30
                          description: Master data attribute
                        DIM1:
                          type: string
                          maxLength: 30
                          description: InfoObject
                        OPT1:
                          type: string
                          maxLength: 2
                          description: 'Selection criteria: OPTION'
                        LOW1:
                          type: string
                          maxLength: 45
                          description: 'Selection criteria: From value'
                        HIGH1:
                          type: string
                          maxLength: 45
                          description: 'Selection criteria: To value'
                        DIM2:
                          type: string
                          maxLength: 30
                          description: InfoObject
                        OPT2:
                          type: string
                          maxLength: 2
                          description: 'Selection criteria: OPTION'
                        LOW2:
                          type: string
                          maxLength: 45
                          description: 'Selection criteria: From value'
                        HIGH2:
                          type: string
                          maxLength: 45
                          description: 'Selection criteria: To value'
                        VALUE:
                          type: string
                          maxLength: 60
                          description: (Partial) Score
                  ET_RETURN:
                    type: array
                    items:
                      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
                  ET_VAR:
                    type: array
                    items:
                      type: object
                      properties:
                        QUERY:
                          type: string
                          maxLength: 60
                          description: Query (Cube/Compid) or View ID (30 Characters)
                        VAR_NAM:
                          type: string
                          maxLength: 8
                          description: 'ABAP/4: Name of SELECT-OPTION / PARAMETER'
                        VARSIGN:
                          type: string
                          maxLength: 1
                          description: 'SIGN field in creation of SELECT-OPTIONS tables  enumValues: E=Exclude specified values,I=Select specified values'
                          enum:
                          - E
                          - I
                        VAROPTION:
                          type: string
                          maxLength: 2
                          description: 'OPTION field in structure of SELECT-OPTIONS tables  enumValues: EQ=Equal: Single value,LT=Less Than: Everything < value in field LOW,NE=Not Equal: Everything apart from the specified single value,GT=Greater Than: Everything > value in field LOW,NP=Not Contains Pattern: Masked input: Reject pattern,NB=Not Between: Everything outside the range,CP=Contains Pattern: Masked input: Find pattern,LE=Less or Equal: Everything <= value in field LOW,GE=Greater or Equal
                            >= value in field LOW,BT=Between: Range of values'
                          enum:
                          - EQ
                          - LT
                          - NE
                          - GT
                          - NP
                          - NB
                          - CP
                          - LE
                          - GE
                          - BT
                        VARLOW:
                          type: string
                          maxLength: 64
                          description: Member Name
                        VARHIGH:
                          type: string
                          maxLength: 64
                          description: Member Name
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
