added basic API access for repo model