Show images from Actions GET/POST

Hi, i’m trying to fetch images using a OPENAPI like that:

openapi: 3.0.0
info:
title: Dummy Image API
version: 1.0.0
description: API to generate dummy images of specified sizes.
servers:

  • url: dummyimage .com
    paths:
    /{size}:
    get:
    operationId: getDummyImage
    summary: Retrieve a dummy image of the specified size.
    parameters:
    - in: path
    name: size
    required: true
    schema:
    type: string
    default: “300”
    description: The size of the image to retrieve, in the format widthxheight.
    responses:
    ‘200’:
    description: A dummy image of the specified size.
    content:
    image/png:
    schema:
    type: string
    format: binary

tr

Is possible show the image from this Action? I need add something to the OPENAPI config?

Thank you!

1 Like