openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/LCRDB_CREATE_INSTANCE:
    post:
      tags:
      - LCRDBW
      operationId: /rfc/LCRDB_CREATE_INSTANCE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                APPLICATION:
                  type: string
                  default: S
                  maxLength: 1
                  description: 'AI-LCR: Application Server or Client'
                CLASSNAME:
                  type: string
                  description: Class Name
                CLASS_TYPE:
                  type: string
                  maxLength: 1
                INSTANCENAME:
                  type: string
                INSTNAME_DISPLAY:
                  type: string
                NAMESPACE:
                  type: string
                  description: Namespace
                NA_KEY:
                  type: integer
                  format: int32
                  description: 'AI-LCR: Namespace Key'
                REFERENCES:
                  type: array
                  items:
                    type: object
                    properties:
                      REF_NAME:
                        type: string
                        description: Reference Name (Class or Instance)
                      ROLE:
                        type: string
                        description: Role in Association
                SERIAL:
                  type: string
                  format: byte
                  description: 'AI-LCR: Java Serialization'
                XML:
                  type: string
                  format: byte
                  description: 'AI-LCR: Representation as XML String'
              required:
              - CLASSNAME
              - CLASS_TYPE
              - INSTANCENAME
              - INSTNAME_DISPLAY
              - NAMESPACE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN:
                    type: integer
                    format: int32
                    description: 'AI-LCR: Return Value for Database Access'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
