Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

@Accept: Add support to other MediaType #221

@eric-taix

Description

@eric-taix

I'm trying to use a JSON API. The API defines a specific mime type => application/vnd.kippt.YYYYMMDD+json (where YYYYMMDD is the date of the API you want to use). This way they introduce a versioned API.

I'm not saying that it's a good solution to version API, but I just try to use their API !

Width @accept annotation, I can only use MediaType which is an Enum. With class Spring MediaType, I can create my own Mediatype.

I think that adding two attributes to @accept annotations would be enough (type and subtype).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions