Added API routes and new schemas