Commit 9e7bfb61 authored by echel0n's avatar echel0n
Browse files

Updated API v2 Schedule endpoint schema

parent a997ee11
......@@ -72,4 +72,4 @@ class ApiV2ScheduleHandler(APIBaseHandler):
results[i]['quality'] = result['quality'].name
results[i]['localtime'] = result['localtime'].timestamp()
return self.write_json({'data': results, 'today': today.timestamp(), 'nextWeek': next_week.timestamp()})
return self.write_json({'episodes': results, 'today': today.timestamp(), 'nextWeek': next_week.timestamp()})
......@@ -24,9 +24,9 @@ from sickrage.core.webserver.handlers.api.schemas import BaseSchema, BaseSuccess
class ScheduleSuccessSchema(BaseSuccessSchema):
data = fields.String(
episodes = fields.String(
description="Validated and schedule information",
description="Scheduled episodes information",
today = fields.Integer(
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment