openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWO_RELATION_IMPORT:
    post:
      tags:
      - SWOD
      operationId: /rfc/SWO_RELATION_IMPORT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DEPTH:
                  type: integer
                  format: int64
                  default: 1
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                NEW:
                  type: string
                  default: X
                  maxLength: 1
                OBJTYPE:
                  type: string
                  maxLength: 10
                GROUPS:
                  type: array
                  items:
                    type: object
                    properties:
                      GROUP:
                        type: string
                        maxLength: 10
                        description: Object type group
                      PARENT:
                        type: string
                        maxLength: 10
                        description: Supertype
                      DEPTH:
                        type: integer
                        format: int64
                        description: Depth in object tree
                      KEYWORD:
                        type: string
                        maxLength: 20
                        description: Name
                LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      STARTTYPE:
                        type: string
                        maxLength: 10
                        description: Start object type
                      ENDTYPE:
                        type: string
                        maxLength: 10
                        description: Target object type
                      VERB:
                        type: string
                        maxLength: 32
                        description: Object type component
                      VERBTYPE:
                        type: string
                        maxLength: 1
                        description: 'Verb type (key, attr., method)  enumValues: ""=No verb,A=Attribute,K=Key field,E=Event,M=Method'
                        enum:
                        - ''
                        - A
                        - K
                        - E
                        - M
                      PARAMETER:
                        type: string
                        maxLength: 32
                        description: Parameter for method
                      TABELEM:
                        type: string
                        maxLength: 1
                        description: 'Multiline element  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      RELATION:
                        type: string
                        maxLength: 1
                        description: Relationship between object types
                      OBLIG:
                        type: string
                        maxLength: 1
                        description: 'Mandatory element  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      DESCRIPT:
                        type: string
                        maxLength: 20
                        description: Name
                NODES:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJTYPE:
                        type: string
                        maxLength: 10
                        description: Object Type
                      KEYWORD:
                        type: string
                        maxLength: 20
                        description: Name
                      GROUP:
                        type: string
                        maxLength: 10
                        description: Object type group
                      DEPTH:
                        type: integer
                        format: int64
                        description: Depth in object tree
                      PARENT:
                        type: string
                        maxLength: 10
                        description: Supertype
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  STARTOBJTYPE:
                    type: string
                    maxLength: 10
                  GROUPS:
                    type: array
                    items:
                      type: object
                      properties:
                        GROUP:
                          type: string
                          maxLength: 10
                          description: Object type group
                        PARENT:
                          type: string
                          maxLength: 10
                          description: Supertype
                        DEPTH:
                          type: integer
                          format: int64
                          description: Depth in object tree
                        KEYWORD:
                          type: string
                          maxLength: 20
                          description: Name
                  LINES:
                    type: array
                    items:
                      type: object
                      properties:
                        STARTTYPE:
                          type: string
                          maxLength: 10
                          description: Start object type
                        ENDTYPE:
                          type: string
                          maxLength: 10
                          description: Target object type
                        VERB:
                          type: string
                          maxLength: 32
                          description: Object type component
                        VERBTYPE:
                          type: string
                          maxLength: 1
                          description: 'Verb type (key, attr., method)  enumValues: ""=No verb,A=Attribute,K=Key field,E=Event,M=Method'
                          enum:
                          - ''
                          - A
                          - K
                          - E
                          - M
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter for method
                        TABELEM:
                          type: string
                          maxLength: 1
                          description: 'Multiline element  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        RELATION:
                          type: string
                          maxLength: 1
                          description: Relationship between object types
                        OBLIG:
                          type: string
                          maxLength: 1
                          description: 'Mandatory element  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        DESCRIPT:
                          type: string
                          maxLength: 20
                          description: Name
                  NODES:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJTYPE:
                          type: string
                          maxLength: 10
                          description: Object Type
                        KEYWORD:
                          type: string
                          maxLength: 20
                          description: Name
                        GROUP:
                          type: string
                          maxLength: 10
                          description: Object type group
                        DEPTH:
                          type: integer
                          format: int64
                          description: Depth in object tree
                        PARENT:
                          type: string
                          maxLength: 10
                          description: Supertype
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
