added api method endpoint and servlet class