openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BDL_GET_SESSION_INFO:
    post:
      tags:
      - BDL3
      summary: Read session information
      operationId: /rfc/BDL_GET_SESSION_INFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DATE_FROM:
                  type: string
                  format: date
                  default: SY-DATUM
                  description: Session date
                DATE_TO:
                  type: string
                  format: date
                  description: Session date
                INSTNO:
                  type: string
                  maxLength: 10
                  description: Installation number
                LIKEY:
                  type: string
                  maxLength: 24
                  description: R/3 license key
                SYSID:
                  type: string
                  maxLength: 3
                  description: System ID of SAP customer system
                SESSIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      SESSNO:
                        type: integer
                        format: int64
                        description: Service session number
                      INTTYPE:
                        type: string
                        maxLength: 8
                        description: Contract type
                      SESSDESCR:
                        type: string
                        maxLength: 8
                        description: Session subtype
                      SESSDATE:
                        type: string
                        format: date
                        description: Session date
              required:
              - DATE_TO
              - INSTNO
              - LIKEY
              - SYSID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RFCERR_HOST:
                    type: string
                    maxLength: 32
                    description: Character field, length 32
                  RFCERR_MSG:
                    type: string
                    maxLength: 100
                    description: Character 100
                  RFCERR_SID:
                    type: string
                    maxLength: 8
                    description: R/3 System, name of R/3 System
                  SESSIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        SESSNO:
                          type: integer
                          format: int64
                          description: Service session number
                        INTTYPE:
                          type: string
                          maxLength: 8
                          description: Contract type
                        SESSDESCR:
                          type: string
                          maxLength: 8
                          description: Session subtype
                        SESSDATE:
                          type: string
                          format: date
                          description: Session date
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
