openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWFMOD_GET_AUTHORITY_OBJECT:
    post:
      tags:
      - SWFMOD_WORKFLOW
      summary: Get authority objects of a user
      operationId: /rfc/SWFMOD_GET_AUTHORITY_OBJECT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_USER:
                  type: string
                  maxLength: 12
                  description: SAP System, User Logon Name
                ET_FOLDER_VALUES:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT:
                        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
                      LOWVAL:
                        type: string
                        maxLength: 40
                        description: Authorization Value
                      HIGHVAL:
                        type: string
                        maxLength: 40
                        description: Authorization Value
                ET_MESSAGE_LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      MSG_TYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      LINE:
                        type: string
                        maxLength: 273
                        description: Text line for message
                ET_MESSAGE_STRUCT:
                  type: array
                  items:
                    type: object
                    properties:
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      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
                ET_VALUES:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT:
                        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
                      LOWVAL:
                        type: string
                        maxLength: 40
                        description: Authorization Value
                      HIGHVAL:
                        type: string
                        maxLength: 40
                        description: Authorization Value
              required:
              - IV_USER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EV_RETCODE:
                    type: integer
                    format: int32
                    description: Return Value, Return Value After ABAP Statements
                  ET_FOLDER_VALUES:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJECT:
                          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
                        LOWVAL:
                          type: string
                          maxLength: 40
                          description: Authorization Value
                        HIGHVAL:
                          type: string
                          maxLength: 40
                          description: Authorization Value
                  ET_MESSAGE_LINES:
                    type: array
                    items:
                      type: object
                      properties:
                        MSG_TYPE:
                          type: string
                          maxLength: 1
                          description: Message Type
                        LINE:
                          type: string
                          maxLength: 273
                          description: Text line for message
                  ET_MESSAGE_STRUCT:
                    type: array
                    items:
                      type: object
                      properties:
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        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
                  ET_VALUES:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJECT:
                          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
                        LOWVAL:
                          type: string
                          maxLength: 40
                          description: Authorization Value
                        HIGHVAL:
                          type: string
                          maxLength: 40
                          description: Authorization Value
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
