[api] refactor how repos api is impelemented to make more consistent
ptr.pet 2 weeks ago bbadc992 e42e3de8