Implemented /api/schedule