openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/PRGN_GET_AGR_HOMEPAGE:
    post:
      tags:
      - PRGN_TREE
      operationId: /rfc/PRGN_GET_AGR_HOMEPAGE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_ROLE_CHECK:
                  type: string
                  default: X
                  maxLength: 1
                I_ROLE_NAME:
                  type: string
                  maxLength: 30
                  description: Role Name
                I_SPRAS:
                  type: string
                  maxLength: 1
                  description: SAP R/3 System, Current Language
                E_AGR_HPAGE:
                  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
                      URL_TYPE:
                        type: string
                        maxLength: 20
                        description: Type of URL
                      OBJECT_ID:
                        type: integer
                        format: int64
                        description: Counter for Menu ID
                      URL:
                        type: string
                        maxLength: 255
                        description: Role Home Page
                      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
                E_AGR_HPAGET:
                  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
                      URL_TYPE:
                        type: string
                        maxLength: 20
                        description: Type of URL
                      OBJECT_ID:
                        type: integer
                        format: int64
                        description: Counter for Menu ID
                      SPRAS:
                        type: string
                        maxLength: 1
                        description: Language Key
                      TEXT:
                        type: string
                        maxLength: 80
                        description: Description of the Home Page for a Role
                      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
              required:
              - I_ROLE_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_AGR_HPAGE:
                    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
                        URL_TYPE:
                          type: string
                          maxLength: 20
                          description: Type of URL
                        OBJECT_ID:
                          type: integer
                          format: int64
                          description: Counter for Menu ID
                        URL:
                          type: string
                          maxLength: 255
                          description: Role Home Page
                        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
                  E_AGR_HPAGET:
                    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
                        URL_TYPE:
                          type: string
                          maxLength: 20
                          description: Type of URL
                        OBJECT_ID:
                          type: integer
                          format: int64
                          description: Counter for Menu ID
                        SPRAS:
                          type: string
                          maxLength: 1
                          description: Language Key
                        TEXT:
                          type: string
                          maxLength: 80
                          description: Description of the Home Page for a Role
                        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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
