openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BINARY_RELATION_CREATE:
    post:
      tags:
      - BREL
      summary: Create a Binary Relationship
      operationId: /rfc/BINARY_RELATION_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                FIRE_EVENTS:
                  type: string
                  default: X
                  maxLength: 1
                  description: Fire Events for OVBF
                OBJ_ROLEA:
                  type: object
                  properties:
                    OBJKEY:
                      type: string
                      maxLength: 70
                      description: Object key
                    OBJTYPE:
                      type: string
                      maxLength: 10
                      description: Object Type
                    LOGSYS:
                      type: string
                      maxLength: 10
                      description: Logical system
                OBJ_ROLEB:
                  type: object
                  properties:
                    OBJKEY:
                      type: string
                      maxLength: 70
                      description: Object key
                    OBJTYPE:
                      type: string
                      maxLength: 10
                      description: Object Type
                    LOGSYS:
                      type: string
                      maxLength: 10
                      description: Logical system
                RELATIONTYPE:
                  type: string
                  maxLength: 4
                  description: Relationship Type
                BINREL_ATTRIB:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTRIBUT:
                        type: string
                        maxLength: 10
                        description: 'Object Relationship Service : attribute of a link'
                      POSNR:
                        type: integer
                        format: int64
                        description: Position of the field in the table
                      GATTRDATA:
                        type: string
                        maxLength: 250
                        description: 'Object relationship: generic attribute structure bin. relat.'
              required:
              - OBJ_ROLEA
              - OBJ_ROLEB
              - RELATIONTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  BINREL:
                    type: object
                    properties:
                      ROLE_A:
                        type: string
                        maxLength: 22
                        description: 'Object Relationship Service : Role GUID'
                      ROLE_B:
                        type: string
                        maxLength: 22
                        description: 'Object Relationship Service : Role GUID'
                      RELATIONID:
                        type: string
                        maxLength: 22
                        description: 'Object Relationship Service : GUID binary link'
                      BRELTYP:
                        type: string
                        maxLength: 4
                        description: Relationship type
                      UTCTIME:
                        type: integer
                        format: int64
                        description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                  BINREL_ATTRIB:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTRIBUT:
                          type: string
                          maxLength: 10
                          description: 'Object Relationship Service : attribute of a link'
                        POSNR:
                          type: integer
                          format: int64
                          description: Position of the field in the table
                        GATTRDATA:
                          type: string
                          maxLength: 250
                          description: 'Object relationship: generic attribute structure bin. relat.'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
