From 219de3e267b28693a048b9a00069b739ab743839 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Jan 30 2019 19:45:07 +0000 Subject: Does GET make sense in this endpoint? I don't think it does. It expects to read the yaml to validate from the request body and there's no usual way to supply that via a GET request. --- diff --git a/greenwave/api_v1.py b/greenwave/api_v1.py index 9b17676..fe11adf 100644 --- a/greenwave/api_v1.py +++ b/greenwave/api_v1.py @@ -386,7 +386,7 @@ def make_decision(): return resp -@api.route('/validate-gating-yaml', methods=['GET', 'POST']) +@api.route('/validate-gating-yaml', methods=['POST']) @jsonp def validate_gating_yaml_post(): """