openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BDL_GET_SESSION_DATA:
    post:
      tags:
      - BDL3
      summary: Get Session data from SAPnet or from local backup table bdlcustses
      operationId: /rfc/BDL_GET_SESSION_DATA
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DATE_FROM:
                  type: string
                  format: date
                DATE_TO:
                  type: string
                  format: date
                INSTNO:
                  type: string
                  maxLength: 10
                LIKEY:
                  type: string
                  maxLength: 24
                SYSID:
                  type: string
                  maxLength: 3
                SESSION_TABLE:
                  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_FROM
              - DATE_TO
              - INSTNO
              - LIKEY
              - SYSID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SESSION_TABLE:
                    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.
