Add the com.oneandone:typedrest-core Maven dependency to your project.

Create a class derived from EntryEndpoint.