0

How to annotate a method in dropwizard so that a single method can handle my both post and GET

eg: Like

@POST
@GET
public void login() throws Exception{
   // do something
}
BigBang
  • 149
  • 12
  • 1
    possible duplicate of http://stackoverflow.com/questions/13408049/create-a-jax-rs-restful-service-that-accepts-both-post-and-get or doesn't use dropwizard jax-rs? – Zhedar Dec 05 '14 at 10:51
  • 1
    This answer specifically, but to do the same thing in a GET and POST sounds like a weird idea... http://stackoverflow.com/a/13408147/609176 – David Spence Dec 12 '14 at 15:57
  • Possible duplicate of [create a Jax-RS RESTful service that accepts both POST and GET?](http://stackoverflow.com/questions/13408049/create-a-jax-rs-restful-service-that-accepts-both-post-and-get) – zloster Apr 17 '17 at 18:46

0 Answers0