From the course: Building RESTful Web Services with DropWizard

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

Add POST endpoint

Add POST endpoint

- [Instructor] Through this chapter, I'm going to show you examples of API code within the example application. So let's get to it. So let's go back into taskresource.java, that's in the Resources folder. And what we're going to do is import a few things first and then get to do the POST endpoint. So let's go ahead and first import a few things. So, what I'm going to do is go ahead and add the code to import the things that are missing. So, let's go ahead and do import, com.codehale and I want metrics and annotation, this one. And we're going to leave this star here so we can load both metered and time for our application. And then we're going to go and do import, io.dropwizard and we're going to do core.template. So we don't have a template and we're not going to write it in this course and I'm going to show the final application at the end of this course. But just for coding purposes and make sure we have a…

Contents