From 918db89dc8ae5ef2bfbbe290ee122e83a63fd69f Mon Sep 17 00:00:00 2001 From: Sarabraj Singh Date: Mon, 7 Nov 2022 11:31:23 -0500 Subject: [PATCH] fixed GET and POST descriptors in swagger.json - /api/v2/job_templates/{id}/launch/ endpoint --- awx/api/templates/api/job_template_launch.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/awx/api/templates/api/job_template_launch.md b/awx/api/templates/api/job_template_launch.md index 5fec56ec6c..be5d584cd0 100644 --- a/awx/api/templates/api/job_template_launch.md +++ b/awx/api/templates/api/job_template_launch.md @@ -1,5 +1,5 @@ Launch a Job Template: - +{% ifmeth GET %} Make a GET request to this resource to determine if the job_template can be launched and whether any passwords are required to launch the job_template. The response will include the following fields: @@ -29,8 +29,8 @@ The response will include the following fields: * `inventory_needed_to_start`: Flag indicating the presence of an inventory associated with the job template. If not then one should be supplied when launching the job (boolean, read-only) - -Make a POST request to this resource to launch the job_template. If any +{% endifmeth %} +{% ifmeth POST %}Make a POST request to this resource to launch the job_template. If any passwords, inventory, or extra variables (extra_vars) are required, they must be passed via POST data, with extra_vars given as a YAML or JSON string and escaped parentheses. If the `inventory_needed_to_start` is `True` then the @@ -41,3 +41,4 @@ are not provided, a 400 status code will be returned. If the job cannot be launched, a 405 status code will be returned. If the provided credential or inventory are not allowed to be used by the user, then a 403 status code will be returned. +{% endifmeth %} \ No newline at end of file