openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/PIG_EZ_CHART:
    post:
      tags:
      - SGRAPHICS
      summary: Create graphic for MiniApps
      operationId: /rfc/PIG_EZ_CHART
      requestBody:
        content:
          application/json:
            schema:
              properties:
                FORMAT:
                  type: integer
                  format: int32
                  default: 0
                  description: Format (jpeg = 0 / gif = 1)
                HEIGHT:
                  type: integer
                  format: int32
                  default: 200
                  description: Height
                LEGEND:
                  type: string
                  default: DEFAULT
                  maxLength: 20
                  description: Position of legend
                SCHEME:
                  type: string
                  default: DEFAULT
                  maxLength: 20
                  description: Color scheme
                TITLE:
                  type: string
                  default: ''
                  maxLength: 20
                  description: Title
                TITLE_CAT:
                  type: string
                  default: ''
                  maxLength: 20
                  description: Title of categories axis
                TITLE_VAL:
                  type: string
                  default: ''
                  maxLength: 20
                  description: Title of values axis
                TYP:
                  type: string
                  default: PIE
                  maxLength: 20
                  description: 'Type (default: pie chart)'
                USE_DB:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: TmpDB
                VALUES:
                  type: string
                  maxLength: 30000
                  description: Data
                WIDTH:
                  type: integer
                  format: int32
                  default: 320
                  description: Width
                CONTENT:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        format: byte
                        description: MIME data container
                IMAGEMAP:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 255
                        description: HTML container
              required:
              - FORMAT
              - HEIGHT
              - LEGEND
              - SCHEME
              - TITLE
              - TYP
              - USE_DB
              - VALUES
              - WIDTH
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CONTENT_ID:
                    type: string
                    maxLength: 32
                    description: Content ID
                  CONTENT_LENGTH:
                    type: integer
                    format: int32
                    description: Content length
                  CONTENT_TYPE:
                    type: string
                    maxLength: 128
                    description: Content type
                  CONTENT:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          format: byte
                          description: MIME data container
                  IMAGEMAP:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 255
                          description: HTML container
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
