openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/OSP/PRGN_GET_ALL_AGRS:
    post:
      tags:
      - /OSP/CORE
      summary: Get all roles
      operationId: /rfc/OSP/PRGN_GET_ALL_AGRS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ALL_AGRS:
                  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
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ALL_AGRS:
                    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.
