Implement api/ns-resolve