locked up api where needed. Added route for ids query for each model