openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SMUM_EXPORT_ROLE_RFC:
    post:
      tags:
      - SMUM
      summary: RFC to export  roles
      operationId: /rfc/SMUM_EXPORT_ROLE_RFC
      requestBody:
        content:
          application/json:
            schema:
              properties:
                APPL_DESC:
                  type: string
                  maxLength: 128
                  description: Application Description
                APPL_TITLE:
                  type: string
                  maxLength: 40
                  description: Application Title
                BASE_URL:
                  type: string
                  maxLength: 128
                  description: Base URL
                ROLE_NAME:
                  type: string
                  maxLength: 30
                  description: Role Name
                TAB_OF_ROLES:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client ID of Current User
                      AGR_NAME:
                        type: string
                        maxLength: 30
                        description: Role Name
                      PARENT_AGR:
                        type: string
                        maxLength: 30
                        description: Name of imparting role
                      CREATE_USR:
                        type: string
                        maxLength: 12
                        description: User Name
                      CREATE_DAT:
                        type: string
                        format: date
                        description: Date of menu generation
                      CREATE_TIM:
                        type: string
                        maxLength: 6
                        description: Time when the menu was generated last
                      CREATE_TMP:
                        type: integer
                        format: int64
                        description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                      CHANGE_USR:
                        type: string
                        maxLength: 12
                        description: User Name
                      CHANGE_DAT:
                        type: string
                        format: date
                        description: Date of menu generation
                      CHANGE_TIM:
                        type: string
                        maxLength: 6
                        description: Time when the menu was generated last
                      CHANGE_TMP:
                        type: integer
                        format: int64
                        description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                      ATTRIBUTES:
                        type: string
                        maxLength: 10
                        description: Attributes of the menu
              required:
              - APPL_DESC
              - APPL_TITLE
              - BASE_URL
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ROLE_STRING:
                    type: string
                    format: byte
                    description: XML document of roles
                  TAB_OF_ROLES:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client ID of Current User
                        AGR_NAME:
                          type: string
                          maxLength: 30
                          description: Role Name
                        PARENT_AGR:
                          type: string
                          maxLength: 30
                          description: Name of imparting role
                        CREATE_USR:
                          type: string
                          maxLength: 12
                          description: User Name
                        CREATE_DAT:
                          type: string
                          format: date
                          description: Date of menu generation
                        CREATE_TIM:
                          type: string
                          maxLength: 6
                          description: Time when the menu was generated last
                        CREATE_TMP:
                          type: integer
                          format: int64
                          description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                        CHANGE_USR:
                          type: string
                          maxLength: 12
                          description: User Name
                        CHANGE_DAT:
                          type: string
                          format: date
                          description: Date of menu generation
                        CHANGE_TIM:
                          type: string
                          maxLength: 6
                          description: Time when the menu was generated last
                        CHANGE_TMP:
                          type: integer
                          format: int64
                          description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                        ATTRIBUTES:
                          type: string
                          maxLength: 10
                          description: Attributes of the menu
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
