openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWD_STORE_WF_METHOD:
    post:
      tags:
      - SWDB
      operationId: /rfc/SWD_STORE_WF_METHOD
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACT_CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                ACT_TASK:
                  type: string
                  maxLength: 14
                ACT_WFDKEY:
                  type: object
                  properties:
                    WFD_ID:
                      type: string
                      maxLength: 10
                      description: Number of workflow definition
                    VERSION:
                      type: string
                      maxLength: 4
                      description: Version
                    EXETYP:
                      type: string
                      maxLength: 1
                      description: 'Workflow Type  enumValues: E=Runtime,R=Ad Hoc Runtime,S=Definition,D=Ad Hoc Definition,C=Configuration Definition,A=Configuration Runtime'
                      enum:
                      - E
                      - R
                      - S
                      - D
                      - C
                      - A
                DO_COMMIT:
                  type: string
                  default: ' '
                  maxLength: 1
                ACT_METHOD:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: 'Workflow definition: Client'
                      WFD_ID:
                        type: string
                        maxLength: 10
                        description: Number of workflow definition
                      VERSION:
                        type: string
                        maxLength: 4
                        description: Version
                      EXETYP:
                        type: string
                        maxLength: 1
                        description: 'Workflow Type  enumValues: E=Runtime,R=Ad Hoc Runtime,S=Definition,D=Ad Hoc Definition,C=Configuration Definition,A=Configuration Runtime'
                        enum:
                        - E
                        - R
                        - S
                        - D
                        - C
                        - A
                      NODEID:
                        type: integer
                        format: int64
                        description: Node Number
                      CALLING_NO:
                        type: integer
                        format: int64
                        description: 'Workflow definition: Call number of a secondary method'
                      AUTOSTART:
                        type: string
                        maxLength: 1
                        description: 'Flag for method type  enumValues: B=Before method (synchronously before main method),X=Main method,""=Secondary method (parallel to main method),A=After method (synchronously after main method)'
                        enum:
                        - B
                        - X
                        - ''
                        - A
                      CONT_OBJ:
                        type: string
                        maxLength: 32
                        description: Container Element for Secondary/Before/After Methods
                      METHOD:
                        type: string
                        maxLength: 32
                        description: Secondary method
              required:
              - ACT_TASK
              - ACT_WFDKEY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ACT_METHOD:
                    type: array
                    items:
                      type: object
                      properties:
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: 'Workflow definition: Client'
                        WFD_ID:
                          type: string
                          maxLength: 10
                          description: Number of workflow definition
                        VERSION:
                          type: string
                          maxLength: 4
                          description: Version
                        EXETYP:
                          type: string
                          maxLength: 1
                          description: 'Workflow Type  enumValues: E=Runtime,R=Ad Hoc Runtime,S=Definition,D=Ad Hoc Definition,C=Configuration Definition,A=Configuration Runtime'
                          enum:
                          - E
                          - R
                          - S
                          - D
                          - C
                          - A
                        NODEID:
                          type: integer
                          format: int64
                          description: Node Number
                        CALLING_NO:
                          type: integer
                          format: int64
                          description: 'Workflow definition: Call number of a secondary method'
                        AUTOSTART:
                          type: string
                          maxLength: 1
                          description: 'Flag for method type  enumValues: B=Before method (synchronously before main method),X=Main method,""=Secondary method (parallel to main method),A=After method (synchronously after main method)'
                          enum:
                          - B
                          - X
                          - ''
                          - A
                        CONT_OBJ:
                          type: string
                          maxLength: 32
                          description: Container Element for Secondary/Before/After Methods
                        METHOD:
                          type: string
                          maxLength: 32
                          description: Secondary method
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
