Created
January 27, 2020 01:37
-
-
Save BetterProgramming/26ad5fa0928cbc21bdd554b8bd987f2c to your computer and use it in GitHub Desktop.
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
@Path("/1.0/login") | |
@Produces("application/json") | |
public class LoginResource { | |
@POST | |
@Path("/") | |
Response login(@FormParam("username") String username, | |
@FormParam("password") String passowrd, | |
@HeaderParam("User-Agent") String userAgent) { | |
... | |
} | |
@HEAD | |
@Path("/") | |
Response ping() { | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment