Skip to content
Snippets Groups Projects
Commit 66f27690 authored by David Trattnig's avatar David Trattnig
Browse files

Assign new API specs.

parent 6b8d3ff5
Branches
Tags
No related merge requests found
......@@ -105,8 +105,15 @@ class EngineApi:
self.logger = logging.getLogger("engine-api")
self.api = api
spec.components.schema("TrackService", schema=TrackServiceSchema)
# API Spec
spec.components.schema("TrackService", schema=TrackServiceSchema)
spec.components.schema("Report", schema=ReportSchema)
spec.components.schema("Schedule", schema=ScheduleSchema)
spec.components.schema("Clock", schema=ClockDataSchema)
# TODO Generates HTML for specification
self.logger.info(spec.to_yaml())
# Schema instances
EngineApi.trackservice_schema = TrackServiceSchema(many=True)
......@@ -139,10 +146,6 @@ class EngineApi:
return Response(content, mimetype="text/html")
# Print the API Spec
# TODO Generates HTML for specification
# self.logger.info(spec.to_dict())
# self.logger.info(spec.to_yaml())
def generate_html(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment