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

Assign new API specs.

parent 12ffab68
No related branches found
No related tags found
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.
Finish editing this message first!
Please register or to comment