changed some of the restful api methods to return standard response
using MediaType value constants instead of strings