From the course: Building RESTful Web Services with DropWizard

Unlock this course with a free trial

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

Syntax of the representation class

Syntax of the representation class

- [Instructor] Now let's start building our model for our heli-whirl application. And that is done with a representation class. So what we're going to do now is create a brand new file inside of our application in the API folder. So if you go back to source, main, Java drop wizard, and then click on the API, you have nothing right now. So what we're going to do is go ahead and create a brand new file. So we're going to call this file, saying.java, like so. And now we have this class that has been created for us, and we're going to start by porting one thing first is the com.fasterxml .jackson .annotation .Jsonproperties. So basically we're using Json to make sure that we can leverage it in the application. So now that we have that, let's go ahead and start creating some content here. The first thing we're going to do is create our variables, so let's declare them, so private, long, and we're going to create a…

Contents