switch api over to using attribute routing