openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSWAD_URL_GET:
    post:
      tags:
      - RSWAD
      summary: Get the URL for Templates, Queries, Reports (3.5 and 7.0)
      operationId: /rfc/RSWAD_URL_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_ACTION:
                  type: string
                  maxLength: 30
                  description: Requested Action
                I_ADDITIONAL_QUERY_STRING:
                  type: string
                  description: Additional query string
                I_OBJTYPE:
                  type: string
                  maxLength: 30
                  description: Object Type (Template, Query, ...)
                I_SERVICE_35:
                  type: string
                  maxLength: 30
                  description: Service (only 3.5)
                I_SUFFIX_35:
                  type: string
                  maxLength: 30
                  description: Suffix (only 3.5)
                I_TECHNAME:
                  type: string
                  maxLength: 30
                  description: Technical Name of the Object
                E_T_MESSAGE:
                  type: array
                  items:
                    type: object
                    properties:
                      CONTEXT_ID:
                        type: integer
                        format: int32
                        description: Object ID
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      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
                      TEXT:
                        type: string
                        maxLength: 220
                        description: Message Text
              required:
              - I_ACTION
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_MAX_MESSAGE_TYPE:
                    type: string
                    maxLength: 1
                    description: Maximum Message Type
                  E_SUBRC:
                    type: integer
                    format: int32
                    description: Return Value of ABAP Statements
                  E_URL:
                    type: string
                    description: Requested URL
                  E_T_MESSAGE:
                    type: array
                    items:
                      type: object
                      properties:
                        CONTEXT_ID:
                          type: integer
                          format: int32
                          description: Object ID
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        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
                        TEXT:
                          type: string
                          maxLength: 220
                          description: Message Text
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
