openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SCI_INSPECT_LIST:
    post:
      tags:
      - S_CODE_INSPECTOR
      operationId: /rfc/SCI_INSPECT_LIST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                P_NAME:
                  type: string
                  maxLength: 30
                  description: 'Code Inspector: Element Name (Chk, ChkV, ObjM, Inspec)'
                P_OBJECTS:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJTYPE:
                        type: string
                        maxLength: 4
                        description: Object Type
                      OBJNAME:
                        type: string
                        maxLength: 40
                        description: Object Name in Object Directory
                      RESPONSIBL:
                        type: string
                        maxLength: 12
                        description: Person Responsible for a Repository Object
                      DEVCLASS:
                        type: string
                        maxLength: 30
                        description: Package
                      PRGNAME:
                        type: string
                        maxLength: 40
                        description: ABAP Program Name
                P_SHOW_RESULTS:
                  type: string
                  maxLength: 1
                  description: General Flag
                P_USER:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: 'Code Inspector: Person Responsible'
              required:
              - P_OBJECTS
              - P_USER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  P_RESULTS:
                    type: array
                    items:
                      type: object
                      properties:
                        INSPECID:
                          type: integer
                          format: int64
                          description: 'Code Inspector: Element ID  (Chk, ChkV, ObjM, Inspec)'
                        INSPECVERS:
                          type: integer
                          format: int64
                          description: 'Code Inspector: Version Number of Element'
                        CIUSER:
                          type: string
                          maxLength: 12
                          description: 'Code Inspector: Person Responsible'
                        OBJTYPE:
                          type: string
                          maxLength: 4
                          description: 'Code Inspector: Object Type'
                        OBJNAME:
                          type: string
                          maxLength: 40
                          description: Object Name in Object Directory
                        TEST:
                          type: string
                          maxLength: 30
                          description: Object Type Name
                        ERRCNT:
                          type: integer
                          format: int32
                          description: 'Code Inspector: Cumulative Error Counter'
                        CONSECCNT:
                          type: integer
                          format: int32
                          description: 'Code Inspector: Consecutive Counter for Long Messages'
                        SOBJNAME:
                          type: string
                          maxLength: 40
                          description: Object Name in Object Directory
                        SOBJTYPE:
                          type: string
                          maxLength: 4
                          description: Object Type
                        LINE:
                          type: integer
                          format: int64
                          description: 'Code Inspector: Line Number for Error'
                        COL:
                          type: integer
                          format: int64
                          description: 'Code Inspector: Column Number for Error'
                        KIND:
                          type: string
                          maxLength: 1
                          description: 'Code Inspector: Error Type (Info, Warning, ...))'
                        CODE:
                          type: string
                          maxLength: 10
                          description: 'Code Inspector: ID for Message Code'
                        PARAM1:
                          type: string
                          description: ''
                        PARAM2:
                          type: string
                          description: ''
                        PARAM3:
                          type: string
                          maxLength: 20
                          description: Char 20
                        PARAM4:
                          type: string
                          maxLength: 20
                          description: Char 20
                        CHECKSUM1:
                          type: integer
                          format: int32
                          description: ''
                        EXCEPTN:
                          type: string
                          maxLength: 1
                          description: CHAR01 data element for SYST
                  P_RESULTS_HD:
                    type: array
                    items:
                      type: object
                      properties:
                        INSPECID:
                          type: integer
                          format: int64
                          description: 'Code Inspector: Element ID  (Chk, ChkV, ObjM, Inspec)'
                        INSPECVERS:
                          type: integer
                          format: int64
                          description: 'Code Inspector: Version Number of Element'
                        CIUSER:
                          type: string
                          maxLength: 12
                          description: 'Code Inspector: Person Responsible'
                        OBJTYPE:
                          type: string
                          maxLength: 4
                          description: Object Type
                        OBJNAME:
                          type: string
                          maxLength: 40
                          description: Object Name in Object Directory
                        RESPONSIBL:
                          type: string
                          maxLength: 12
                          description: Person Responsible for a Repository Object
                        DEVCLASS:
                          type: string
                          maxLength: 30
                          description: Package
                        PRGNAME:
                          type: string
                          maxLength: 40
                          description: ABAP Program Name
                        STATUS:
                          type: string
                          maxLength: 1
                          description: 'Code Inspector: Execution Status of a Single Object'
                  P_VARIANT:
                    type: array
                    items:
                      type: object
                      properties:
                        TESTNAME:
                          type: string
                          maxLength: 30
                          description: CHAR30 for SYST
                        ATTRIBUTES:
                          type: string
                          format: byte
                          description: ''
                        VERSION:
                          type: integer
                          format: int64
                          description: 'Code Inspector: Version Number of Element'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
