Skip to content

Commit

Permalink
Turn off autodoc for metrics endpoints (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson committed Aug 7, 2020
1 parent b35f7b3 commit 5640dad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions discovery-provider/src/api/v1/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
metrics_route_parser.add_argument('limit', required=False, type=int)
metrics_route_parser.add_argument('version', required=False, action='append')

@ns.route("/routes")
@ns.route("/routes", doc=False)
class RouteMetrics(Resource):
@ns.expect(metrics_route_parser)
@ns.marshal_with(route_metrics_response)
Expand All @@ -49,7 +49,7 @@ def get(self):
metrics_app_name_list_parser.add_argument('limit', required=False, type=int)
metrics_app_name_list_parser.add_argument('offset', required=False, type=int)

@ns.route("/app_name")
@ns.route("/app_name", doc=False)
class AppNameListMetrics(Resource):
@ns.expect(metrics_app_name_list_parser)
@ns.marshal_with(app_name_response)
Expand All @@ -72,7 +72,7 @@ def get(self):
metrics_app_name_parser.add_argument('start_time', required=True, type=int)
metrics_app_name_parser.add_argument('limit', required=False, type=int)

@ns.route("/app_name/<string:app_name>")
@ns.route("/app_name/<string:app_name>", doc=False)
class AppNameMetrics(Resource):
@ns.expect(metrics_app_name_parser)
@ns.marshal_with(app_name_metrics_response)
Expand Down

0 comments on commit 5640dad

Please sign in to comment.