Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created January 27, 2020 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BetterProgramming/26ad5fa0928cbc21bdd554b8bd987f2c to your computer and use it in GitHub Desktop.
Save BetterProgramming/26ad5fa0928cbc21bdd554b8bd987f2c to your computer and use it in GitHub Desktop.
@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