@Retention(value=RUNTIME) @Target(value=METHOD) public static @interface MimeType.JSON
Annotation matching the application/json mime type.
application/json
@MimeType.JSON public Response index() { return Response.ok().body("{'say':'hello world'}"); }
Copyright © 2015 eXo Platform SAS. All rights reserved.