-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static variable for the mediatype name #9
Comments
I agree; nice hint, but actually would be better to have something like this: public static final String MIME_TYPE = "application";
public static final String MIME_SUBTYPE = "vnd.collection+json";
public static final String MIME_MEDIA_TYPE = MIME_TYPE+"/"+MIME_SUBTYPE; |
Sure. Pull request? -E On Thu, Feb 20, 2014 at 3:11 PM, cfinckler notifications@github.com wrote:
|
I will try that with the pull request in the next days. |
cool =) |
It would be nice, if the framework could offer a public static final variable for the mediatype name. I need to state the mediatype in the REST-interfaces and created my own variable for that. I would be more convenient, if your framework would offer that.
example:
public static final String MediaType_COLLECTION_JSON = "application/vnd.collection+json";
The text was updated successfully, but these errors were encountered: