openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SVMCRT_INT_MSG_DOWNLOAD:
    post:
      tags:
      - SVMCRT_INT
      operationId: /rfc/SVMCRT_INT_MSG_DOWNLOAD
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANGUAGE:
                  type: string
                  maxLength: 1
                MSG_CLASS:
                  type: string
                  maxLength: 20
                RESULTTYPE:
                  type: string
                  maxLength: 1
                MESSAGES:
                  type: array
                  items:
                    type: object
                    properties:
                      SPRSL:
                        type: string
                        maxLength: 1
                        description: Language Key
                      ARBGB:
                        type: string
                        maxLength: 20
                        description: Application Area
                      MSGNR:
                        type: string
                        maxLength: 3
                        description: Message number
                      TEXT:
                        type: string
                        maxLength: 73
                        description: Message Text
                MESSAGES_LONG:
                  type: array
                  items:
                    type: object
                    properties:
                      ID:
                        type: string
                        maxLength: 2
                        description: Document class
                      OBJECT:
                        type: string
                        maxLength: 60
                        description: Documentation Object
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Documentation language
                      TYP:
                        type: string
                        maxLength: 1
                        description: Documentation type
                      DOKVERSION:
                        type: integer
                        format: int64
                        description: Version of Documentation Module
                      LINE:
                        type: integer
                        format: int64
                        description: Line number within the documentation element
                      DOKFORMAT:
                        type: string
                        maxLength: 2
                        description: Documentation format from SAPscript
                      DOKTEXT:
                        type: string
                        maxLength: 72
                        description: Text line in the documentation module
              required:
              - LANGUAGE
              - MSG_CLASS
              - RESULTTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  MESSAGES:
                    type: array
                    items:
                      type: object
                      properties:
                        SPRSL:
                          type: string
                          maxLength: 1
                          description: Language Key
                        ARBGB:
                          type: string
                          maxLength: 20
                          description: Application Area
                        MSGNR:
                          type: string
                          maxLength: 3
                          description: Message number
                        TEXT:
                          type: string
                          maxLength: 73
                          description: Message Text
                  MESSAGES_LONG:
                    type: array
                    items:
                      type: object
                      properties:
                        ID:
                          type: string
                          maxLength: 2
                          description: Document class
                        OBJECT:
                          type: string
                          maxLength: 60
                          description: Documentation Object
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Documentation language
                        TYP:
                          type: string
                          maxLength: 1
                          description: Documentation type
                        DOKVERSION:
                          type: integer
                          format: int64
                          description: Version of Documentation Module
                        LINE:
                          type: integer
                          format: int64
                          description: Line number within the documentation element
                        DOKFORMAT:
                          type: string
                          maxLength: 2
                          description: Documentation format from SAPscript
                        DOKTEXT:
                          type: string
                          maxLength: 72
                          description: Text line in the documentation module
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
