openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SVRS_GET_VERSION_REPS:
    post:
      tags:
      - SVRR
      summary: Returns a Version of Report Sources
      operationId: /rfc/SVRS_GET_VERSION_REPS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                OBJECT_NAME:
                  type: string
                  maxLength: 34
                  description: Report Name
                VERSNO:
                  type: integer
                  format: int64
                REPOS_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 72
                        description: Text editor text line
                TRDIR_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 8
                        description: 'ABAP: Program Name'
                      SQLX:
                        type: string
                        maxLength: 1
                        description: Source code protection
                      EDTX:
                        type: string
                        maxLength: 1
                        description: Editor lock flag
                      VARCL:
                        type: string
                        maxLength: 1
                        description: Upper/Lower Case
                      DBAPL:
                        type: string
                        maxLength: 1
                        description: Application Database
                      DBNA:
                        type: string
                        maxLength: 2
                        description: Logical Database
                      CLAS:
                        type: string
                        maxLength: 4
                        description: Program Class
                      TYPE:
                        type: string
                        maxLength: 3
                        description: Selection screen version
                      OCCURS:
                        type: string
                        maxLength: 1
                        description: Automatically Generated Program
                      SUBC:
                        type: string
                        maxLength: 1
                        description: Program Type
                      APPL:
                        type: string
                        maxLength: 1
                        description: Application
                      SECU:
                        type: string
                        maxLength: 8
                        description: Authorization Group
                      CNAM:
                        type: string
                        maxLength: 12
                        description: Author
                      CDAT:
                        type: string
                        format: date
                        description: Created on
                      UNAM:
                        type: string
                        maxLength: 12
                        description: Last changed by
                      UDAT:
                        type: string
                        format: date
                        description: Changed On
                      VERN:
                        type: string
                        maxLength: 6
                        description: Version Number
                      LEVL:
                        type: string
                        maxLength: 4
                        description: Release
                      RSTAT:
                        type: string
                        maxLength: 1
                        description: Status
                      RMAND:
                        type: string
                        maxLength: 3
                        description: Client
                      RLOAD:
                        type: string
                        maxLength: 1
                        description: Master Language
                      FIXPT:
                        type: string
                        maxLength: 1
                        description: Fixed point arithmetic
                      SSET:
                        type: string
                        maxLength: 1
                        description: Start only via variant
                      SDATE:
                        type: string
                        format: date
                        description: Generate Standard Selections
                      STIME:
                        type: string
                        maxLength: 6
                        description: Generate Standard Selections
                      IDATE:
                        type: string
                        format: date
                        description: Generate Separate Selection
                      ITIME:
                        type: string
                        maxLength: 6
                        description: Generate Separate Selection
              required:
              - OBJECT_NAME
              - VERSNO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  REPOS_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 72
                          description: Text editor text line
                  TRDIR_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 8
                          description: 'ABAP: Program Name'
                        SQLX:
                          type: string
                          maxLength: 1
                          description: Source code protection
                        EDTX:
                          type: string
                          maxLength: 1
                          description: Editor lock flag
                        VARCL:
                          type: string
                          maxLength: 1
                          description: Upper/Lower Case
                        DBAPL:
                          type: string
                          maxLength: 1
                          description: Application Database
                        DBNA:
                          type: string
                          maxLength: 2
                          description: Logical Database
                        CLAS:
                          type: string
                          maxLength: 4
                          description: Program Class
                        TYPE:
                          type: string
                          maxLength: 3
                          description: Selection screen version
                        OCCURS:
                          type: string
                          maxLength: 1
                          description: Automatically Generated Program
                        SUBC:
                          type: string
                          maxLength: 1
                          description: Program Type
                        APPL:
                          type: string
                          maxLength: 1
                          description: Application
                        SECU:
                          type: string
                          maxLength: 8
                          description: Authorization Group
                        CNAM:
                          type: string
                          maxLength: 12
                          description: Author
                        CDAT:
                          type: string
                          format: date
                          description: Created on
                        UNAM:
                          type: string
                          maxLength: 12
                          description: Last changed by
                        UDAT:
                          type: string
                          format: date
                          description: Changed On
                        VERN:
                          type: string
                          maxLength: 6
                          description: Version Number
                        LEVL:
                          type: string
                          maxLength: 4
                          description: Release
                        RSTAT:
                          type: string
                          maxLength: 1
                          description: Status
                        RMAND:
                          type: string
                          maxLength: 3
                          description: Client
                        RLOAD:
                          type: string
                          maxLength: 1
                          description: Master Language
                        FIXPT:
                          type: string
                          maxLength: 1
                          description: Fixed point arithmetic
                        SSET:
                          type: string
                          maxLength: 1
                          description: Start only via variant
                        SDATE:
                          type: string
                          format: date
                          description: Generate Standard Selections
                        STIME:
                          type: string
                          maxLength: 6
                          description: Generate Standard Selections
                        IDATE:
                          type: string
                          format: date
                          description: Generate Separate Selection
                        ITIME:
                          type: string
                          maxLength: 6
                          description: Generate Separate Selection
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
