Skip to content
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

Closed
christianfinckler1212 opened this issue Feb 20, 2014 · 4 comments
Closed

Static variable for the mediatype name #9

christianfinckler1212 opened this issue Feb 20, 2014 · 4 comments

Comments

@christianfinckler1212
Copy link
Contributor

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";

@meniluca
Copy link

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;

@hamnis
Copy link
Owner

hamnis commented Feb 20, 2014

Sure. Pull request?

-E

On Thu, Feb 20, 2014 at 3:11 PM, cfinckler notifications@github.com wrote:

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";

Reply to this email directly or view it on GitHubhttps://github.com//issues/9
.

@christianfinckler1212
Copy link
Contributor Author

I will try that with the pull request in the next days.

@hamnis
Copy link
Owner

hamnis commented Feb 21, 2014

cool =)

@hamnis hamnis closed this as completed Jul 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants