openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SUSR_USER_AUTH_FOR_OBJ_GET:
    post:
      tags:
      - SUSE
      summary: Display authorizations (for a specified object) belonging to a user
      operationId: /rfc/SUSR_USER_AUTH_FOR_OBJ_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                MANDANT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                  description: SAP System, Client Number from Logon
                NEW_BUFFERING:
                  type: string
                  default: '3'
                  maxLength: 4
                  description: Flag for various authorization programs
                SEL_OBJECT:
                  type: string
                  maxLength: 10
                  description: Authorization object for restriction
                USER_NAME:
                  type: string
                  maxLength: 12
                  description: User Name in User Master Record
                VALUES:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJCT:
                        type: string
                        maxLength: 10
                        description: Authorization Object
                      AUTH:
                        type: string
                        maxLength: 12
                        description: Authorization name in user master maintenance
                      FIELD:
                        type: string
                        maxLength: 10
                        description: Authorization Field
                      VON:
                        type: string
                        maxLength: 40
                        description: Authorization Value
                      BIS:
                        type: string
                        maxLength: 40
                        description: Authorization Value
              required:
              - USER_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  VALUES:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJCT:
                          type: string
                          maxLength: 10
                          description: Authorization Object
                        AUTH:
                          type: string
                          maxLength: 12
                          description: Authorization name in user master maintenance
                        FIELD:
                          type: string
                          maxLength: 10
                          description: Authorization Field
                        VON:
                          type: string
                          maxLength: 40
                          description: Authorization Value
                        BIS:
                          type: string
                          maxLength: 40
                          description: Authorization Value
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
