add spec for lookup in dird REST API