openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWFMOD_CREATE_FOLDER:
    post:
      tags:
      - SWFMOD_WORKFLOW
      summary: Create folder for components, templates or workflows
      operationId: /rfc/SWFMOD_CREATE_FOLDER
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_CREATED_BY:
                  type: string
                  maxLength: 12
                  description: SAP System, User Logon Name
                IV_FOLDER_ID_P:
                  type: string
                  maxLength: 32
                  description: Folder unique identification number
                IV_FOLDER_TYPE:
                  type: string
                  maxLength: 2
                  description: 'Modeler object type: C, T, W'
                IV_REQNUM:
                  type: string
                  maxLength: 20
                  description: Request/Task
                IV_TECHNICAL_NAME:
                  type: string
                  maxLength: 30
                  description: Optional for user folder
                IV_TXTLG:
                  type: string
                  maxLength: 255
                  description: Long description
                IV_TXTSH:
                  type: string
                  maxLength: 35
                  description: Short description
                ET_MESSAGE_LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      MSG_TYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      LINE:
                        type: string
                        maxLength: 273
                        description: Text line for message
                ET_MESSAGE_STRUCT:
                  type: array
                  items:
                    type: object
                    properties:
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
              required:
              - IV_CREATED_BY
              - IV_FOLDER_TYPE
              - IV_TXTSH
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EV_FOLDER_ID:
                    type: string
                    maxLength: 32
                    description: Folder unique identification number
                  EV_RETCODE:
                    type: integer
                    format: int32
                    description: Return Value, Return Value After ABAP Statements
                  ET_MESSAGE_LINES:
                    type: array
                    items:
                      type: object
                      properties:
                        MSG_TYPE:
                          type: string
                          maxLength: 1
                          description: Message Type
                        LINE:
                          type: string
                          maxLength: 273
                          description: Text line for message
                  ET_MESSAGE_STRUCT:
                    type: array
                    items:
                      type: object
                      properties:
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
