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