Hello Ervin, PUT endpoints can be implemented in the same way as POST endpoints, except that you use the @PUT annotation. See Jersey documentation for details: https://jersey.java.net/documentation/latest/jaxrs-resources.html#d0e2083
On Mon, Sep 26, 2016 at 1:12 PM, <[email protected]> wrote: > I am currently using your dropwizard-example (latest version) as a guide > for my project. I was curious on how to send put requests, so that the > resource gets updated in the database. I was trying to created an update > method in the PersonDAO class but was having trouble finding documentation > on how to do so. I have a @POST request in PERSONRESOURCE.java, which calls > the update method for the database. I couldn't find a lot of documentation > on creating PUT requests and updating the database. There are any tips that > you may suggest? > > -- > You received this message because you are subscribed to the Google Groups > "dropwizard-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Evan Meagher -- You received this message because you are subscribed to the Google Groups "dropwizard-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
