Move instance api to a more standard rest format