openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/ES_EXECUTE_OBJECT_SEARCH:
    post:
      tags:
      - SESC_PROXY_INTERFACE
      operationId: /rfc/ES_EXECUTE_OBJECT_SEARCH
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_CONTENT_TYPE:
                  type: string
                  maxLength: 1
                I_FROM:
                  type: integer
                  format: int32
                I_GN_COUNT:
                  type: integer
                  format: int32
                I_GN_FIELDS:
                  type: array
                  items:
                    type: string
                    maxLength: 64
                    description: Attribute Name
                I_LANGU:
                  type: string
                  maxLength: 1
                I_QUERY:
                  type: array
                  items:
                    type: object
                    properties:
                      FIELDNAME:
                        type: string
                        maxLength: 64
                        description: Attribute Name
                      ROWTYPE:
                        type: string
                        maxLength: 15
                        description: Row Type in Enterprise Search Query
                      OPERATOR:
                        type: string
                        maxLength: 2
                        description: Operator in Enterprise Search Query
                      VALUE1:
                        type: string
                        description: ''
                      VALUE2:
                        type: string
                        description: ''
                      SEARCH_FLAG:
                        type: integer
                        format: int32
                        description: 'Search Flag: 0=default, 1=case sensitive, 2=norm. combounds'
                I_REQUEST_FIELDS:
                  type: array
                  items:
                    type: string
                    maxLength: 64
                    description: Attribute Name
                I_SEARCHSCOPE:
                  type: object
                  properties:
                    REPOSITORY_CLASS:
                      type: string
                      maxLength: 10
                      description: Repository Class
                    REPOSITORY_ID:
                      type: string
                      maxLength: 30
                      description: Repository ID
                    OBJTYPEID:
                      type: string
                      maxLength: 30
                      description: Unique Name of Object Type
                I_SEGMENTATION_FIELD:
                  type: string
                  maxLength: 64
                I_SORT:
                  type: array
                  items:
                    type: object
                    properties:
                      FIELDNAME:
                        type: string
                        maxLength: 64
                        description: Attribute Name
                      SORT:
                        type: string
                        maxLength: 1
                        description: Sort Ascending, Descending
                I_TERM:
                  type: string
                I_TO:
                  type: integer
                  format: int32
              required:
              - I_FROM
              - I_REQUEST_FIELDS
              - I_SEARCHSCOPE
              - I_TO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_ALL_HITS:
                    type: integer
                    format: int32
                  E_HITS:
                    type: integer
                    format: int32
                  E_RESULT_OBJSEARCH_XML:
                    type: string
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
