using ApiController for apis