openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RPY_CLIF_REL_MULTI_INSERT:
    post:
      tags:
      - SICL
      summary: Insert a relationship for a class or interface
      operationId: /rfc/RPY_CLIF_REL_MULTI_INSERT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CICO_REQUEST_NO:
                  type: string
                  maxLength: 20
                  description: Transport request number
                CLASS_INTERFACE_ID:
                  type: object
                  properties:
                    CLSNAME:
                      type: string
                      maxLength: 30
                      description: Object Type Name
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Language
                ERROR_SET:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECTID:
                        type: string
                        maxLength: 30
                        description: Object name
                      OBJECTTYPE:
                        type: string
                        maxLength: 4
                        description: Object Type
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGTYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGNUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGVAR1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGVAR2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGVAR3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGVAR4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      ERRORCLASS:
                        type: string
                        maxLength: 10
                        description: 'Error class repository API  enumValues: ERR_AUTH=Authorization error,ERR_INT=Internal error,ERR_TRLOCK=Long-term lock on object,ERR_CONSIS=Object is inconsistent,ERR_LANGU=Object has other master language,ERR_PARAM=Function module incorrectly parameterized,ERR_ENQ=Temporary lock on object,ERR_EXIST=Object does not exist,ERR_DOUBLE=Object already exists'
                        enum:
                        - ERR_AUTH
                        - ERR_INT
                        - ERR_TRLOCK
                        - ERR_CONSIS
                        - ERR_LANGU
                        - ERR_PARAM
                        - ERR_ENQ
                        - ERR_EXIST
                        - ERR_DOUBLE
                FRIENDS_RELATION_SET:
                  type: array
                  items:
                    type: object
                    properties:
                      CLSNAME:
                        type: string
                        maxLength: 30
                        description: Object Type Name
                      REFCLSNAME:
                        type: string
                        maxLength: 30
                        description: Object Type Name
                      FRIENDTYPE:
                        type: integer
                        format: int64
                        description: 'Type of Friend Relationship (local <-> global)  enumValues: 0=Global Friend Relationship,1=Local Friend Relationship'
                        enum:
                        - '0'
                        - '1'
                      VERSION:
                        type: integer
                        format: int64
                        description: 'Version indicator (active/inactive)  enumValues: 1=Active,0=Inactive'
                        enum:
                        - '1'
                        - '0'
                      AUTHOR:
                        type: string
                        maxLength: 12
                        description: Author
                      CREATEDON:
                        type: string
                        format: date
                        description: Created on
                      CHANGEDBY:
                        type: string
                        maxLength: 12
                        description: Last changed by
                      CHANGEDON:
                        type: string
                        format: date
                        description: Changed On
                INSTANCE_RELATION_SET:
                  type: array
                  items:
                    type: object
                    properties:
                      CLSNAME:
                        type: string
                        maxLength: 30
                        description: Object Type Name
                      CMPNAME:
                        type: string
                        maxLength: 30
                        description: Component name
                      VERSION:
                        type: integer
                        format: int64
                        description: 'Version indicator (active/inactive)  enumValues: 1=Active,0=Inactive'
                        enum:
                        - '1'
                        - '0'
                      REFCLSNAME:
                        type: string
                        maxLength: 30
                        description: Object Type Name
                      IRLTYPE:
                        type: integer
                        format: int64
                        description: 'Relationship type between instances  enumValues: 1=Composition (after UML) (DATA a TYPE c),0=Association            (DATA a TYPE REF TO c)'
                        enum:
                        - '1'
                        - '0'
                META_RELATION_SET:
                  type: array
                  items:
                    type: object
                    properties:
                      CLSNAME:
                        type: string
                        maxLength: 30
                        description: Object Type Name
                      REFCLSNAME:
                        type: string
                        maxLength: 30
                        description: Object Type Name
                      VERSION:
                        type: integer
                        format: int64
                        description: 'Version indicator (active/inactive)  enumValues: 1=Active,0=Inactive'
                        enum:
                        - '1'
                        - '0'
                      STATE:
                        type: integer
                        format: int64
                        description: 'Status of a class or component  enumValues: 0=Only modeled,1=Implemented,2=Implemented                 *** obsolete ***'
                        enum:
                        - '0'
                        - '1'
                        - '2'
                      AUTHOR:
                        type: string
                        maxLength: 12
                        description: Author
                      CREATEDON:
                        type: string
                        format: date
                        description: Created on
                      CHANGEDBY:
                        type: string
                        maxLength: 12
                        description: Last changed by
                      CHANGEDON:
                        type: string
                        format: date
                        description: Changed On
                      RELTYPE:
                        type: integer
                        format: int64
                        description: 'Relationship type between classes  enumValues: 1=Interface implementation (CLASS c. INTERFACES i_ref),2=Inheritance                (c INHERITING FROM c_ref),5=Enhancement            ( c enhances c_ref),0=Interface composition     (i COMPRISING i_ref)'
                        enum:
                        - '1'
                        - '2'
                        - '5'
                        - '0'
                      RELNAME:
                        type: string
                        maxLength: 30
                        description: Relationship type name
                      EXPOSURE:
                        type: integer
                        format: int64
                        description: 'Visibility of a class or component  enumValues: 1=Protected,0=Private,2=Public'
                        enum:
                        - '1'
                        - '0'
                        - '2'
              required:
              - CICO_REQUEST_NO
              - CLASS_INTERFACE_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ERROR_SET:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJECTID:
                          type: string
                          maxLength: 30
                          description: Object name
                        OBJECTTYPE:
                          type: string
                          maxLength: 4
                          description: Object Type
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGTYPE:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGNUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGVAR1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGVAR2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGVAR3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGVAR4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        ERRORCLASS:
                          type: string
                          maxLength: 10
                          description: 'Error class repository API  enumValues: ERR_AUTH=Authorization error,ERR_INT=Internal error,ERR_TRLOCK=Long-term lock on object,ERR_CONSIS=Object is inconsistent,ERR_LANGU=Object has other master language,ERR_PARAM=Function module incorrectly parameterized,ERR_ENQ=Temporary lock on object,ERR_EXIST=Object does not exist,ERR_DOUBLE=Object already exists'
                          enum:
                          - ERR_AUTH
                          - ERR_INT
                          - ERR_TRLOCK
                          - ERR_CONSIS
                          - ERR_LANGU
                          - ERR_PARAM
                          - ERR_ENQ
                          - ERR_EXIST
                          - ERR_DOUBLE
                  FRIENDS_RELATION_SET:
                    type: array
                    items:
                      type: object
                      properties:
                        CLSNAME:
                          type: string
                          maxLength: 30
                          description: Object Type Name
                        REFCLSNAME:
                          type: string
                          maxLength: 30
                          description: Object Type Name
                        FRIENDTYPE:
                          type: integer
                          format: int64
                          description: 'Type of Friend Relationship (local <-> global)  enumValues: 0=Global Friend Relationship,1=Local Friend Relationship'
                          enum:
                          - '0'
                          - '1'
                        VERSION:
                          type: integer
                          format: int64
                          description: 'Version indicator (active/inactive)  enumValues: 1=Active,0=Inactive'
                          enum:
                          - '1'
                          - '0'
                        AUTHOR:
                          type: string
                          maxLength: 12
                          description: Author
                        CREATEDON:
                          type: string
                          format: date
                          description: Created on
                        CHANGEDBY:
                          type: string
                          maxLength: 12
                          description: Last changed by
                        CHANGEDON:
                          type: string
                          format: date
                          description: Changed On
                  INSTANCE_RELATION_SET:
                    type: array
                    items:
                      type: object
                      properties:
                        CLSNAME:
                          type: string
                          maxLength: 30
                          description: Object Type Name
                        CMPNAME:
                          type: string
                          maxLength: 30
                          description: Component name
                        VERSION:
                          type: integer
                          format: int64
                          description: 'Version indicator (active/inactive)  enumValues: 1=Active,0=Inactive'
                          enum:
                          - '1'
                          - '0'
                        REFCLSNAME:
                          type: string
                          maxLength: 30
                          description: Object Type Name
                        IRLTYPE:
                          type: integer
                          format: int64
                          description: 'Relationship type between instances  enumValues: 1=Composition (after UML) (DATA a TYPE c),0=Association            (DATA a TYPE REF TO c)'
                          enum:
                          - '1'
                          - '0'
                  META_RELATION_SET:
                    type: array
                    items:
                      type: object
                      properties:
                        CLSNAME:
                          type: string
                          maxLength: 30
                          description: Object Type Name
                        REFCLSNAME:
                          type: string
                          maxLength: 30
                          description: Object Type Name
                        VERSION:
                          type: integer
                          format: int64
                          description: 'Version indicator (active/inactive)  enumValues: 1=Active,0=Inactive'
                          enum:
                          - '1'
                          - '0'
                        STATE:
                          type: integer
                          format: int64
                          description: 'Status of a class or component  enumValues: 0=Only modeled,1=Implemented,2=Implemented                 *** obsolete ***'
                          enum:
                          - '0'
                          - '1'
                          - '2'
                        AUTHOR:
                          type: string
                          maxLength: 12
                          description: Author
                        CREATEDON:
                          type: string
                          format: date
                          description: Created on
                        CHANGEDBY:
                          type: string
                          maxLength: 12
                          description: Last changed by
                        CHANGEDON:
                          type: string
                          format: date
                          description: Changed On
                        RELTYPE:
                          type: integer
                          format: int64
                          description: 'Relationship type between classes  enumValues: 1=Interface implementation (CLASS c. INTERFACES i_ref),2=Inheritance                (c INHERITING FROM c_ref),5=Enhancement            ( c enhances c_ref),0=Interface composition     (i COMPRISING i_ref)'
                          enum:
                          - '1'
                          - '2'
                          - '5'
                          - '0'
                        RELNAME:
                          type: string
                          maxLength: 30
                          description: Relationship type name
                        EXPOSURE:
                          type: integer
                          format: int64
                          description: 'Visibility of a class or component  enumValues: 1=Protected,0=Private,2=Public'
                          enum:
                          - '1'
                          - '0'
                          - '2'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
