Repository api

-Add index api call and variables, has dependency of search
-Add show api call and variables, has dependency of search