Skip to content

Make default type of Resource as binary #322

Closed
@IvoMajic

Description

@IvoMajic

It seems the Spring Resource type is currently not recognized as a binary response (I am returning a Resource subtype - FieSystemResource). The Resource object shows up as a schema in the UI. Here is my current method definition:

@GetMapping("/{imageId}", produces = [MediaType.IMAGE_JPEG_VALUE]) fun getImage(@PathVariable(value = "imageId") imageId: String): Mono<Resource>

Is it possible to somehow override this behavior, to recognize it as a binary response?

Thank you for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions