You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
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).
Replace the MediaType enum with a class holding String constants, and update @Accept to take a String value() param
Keep the current value() parameter that can have a default empty value, and add a new stringType() (we need to find a better name) that accepts Strings.
I think the first option would be more universal. And it should be retrocompatible, if we keep the same qualified name for MediaType.
I think I did that because Spring dependencies are not available in androidannotations project. So, I have created our own MediaType to use the "native" annotation validation.
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).