HOW TO Write REST API using DropWizard