Last active
November 1, 2018 14:40
-
-
Save xstefank/914614d8250cdc40c0047f55cff484a2 to your computer and use it in GitHub Desktop.
Method stereotype usage in JAX-RS
This file contains 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 org.xstefank; | |
import javax.enterprise.inject.Produces; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.Path; | |
import javax.ws.rs.core.Response; | |
@Path("test") | |
public class TestResource { | |
@Path("get") | |
@GET | |
@TestStereotype | |
@Produces | |
public Response get() { | |
return Response.ok("get").build(); | |
} | |
@Path("getSth") | |
@GET | |
@AnotherTestStereotype | |
@Produces | |
public Response getSth() { | |
return Response.ok("getSth").build(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment