Created
December 10, 2012 18:40
-
-
Save dfernandez79/4252400 to your computer and use it in GitHub Desktop.
Example JAX-RS Resource
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mulesoft.blog.example; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.Path; | |
import javax.ws.rs.Produces; | |
import javax.ws.rs.core.MediaType; | |
@Path("/example") | |
public class ExampleResource { | |
@GET | |
@Path("/values") | |
@Produces(MediaType.APPLICATION_JSON) | |
public String values() { | |
return "["Hello", "from other domain"]"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment