added webapi route to support returning json or xml