openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWO_OBJTYPE_CODEGEN:
    post:
      tags:
      - SWOS
      summary: Generate Code for Interface Object Type  (IDL, ODL, ...)
      operationId: /rfc/SWO_OBJTYPE_CODEGEN
      requestBody:
        content:
          application/json:
            schema:
              properties:
                FILENAME:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: File name for download
                OUTPUT_LANGUAGE:
                  type: string
                  maxLength: 10
                  description: Target Language
                OBJECTTYPES:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJTYPE:
                        type: string
                        maxLength: 10
                        description: Object Type
                SOURCE:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 132
                        description: Text Line
              required:
              - OUTPUT_LANGUAGE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  OBJECTTYPES:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJTYPE:
                          type: string
                          maxLength: 10
                          description: Object Type
                  SOURCE:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 132
                          description: Text Line
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
