From 527594285f5bd6871ef7f22c4b4521a1246dd606 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Fri, 2 Feb 2018 15:45:17 -0500 Subject: [PATCH] more Swagger template markup --- awx/api/templates/api/retrieve_update_api_view.md | 4 ++++ awx/api/templates/api/retrieve_update_destroy_api_view.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/awx/api/templates/api/retrieve_update_api_view.md b/awx/api/templates/api/retrieve_update_api_view.md index 4a0b69ef6a..096552b932 100644 --- a/awx/api/templates/api/retrieve_update_api_view.md +++ b/awx/api/templates/api/retrieve_update_api_view.md @@ -20,9 +20,13 @@ Make a PUT or PATCH request to this resource to update this {% with write_only=1 %} {% include "api/_result_fields_common.md" with serializer_fields=serializer_update_fields %} {% endwith %} +{% endifmeth %} +{% ifmeth PUT %} For a PUT request, include **all** fields in the request. +{% endifmeth %} +{% ifmeth PATCH %} For a PATCH request, include only the fields that are being modified. {% endifmeth %} diff --git a/awx/api/templates/api/retrieve_update_destroy_api_view.md b/awx/api/templates/api/retrieve_update_destroy_api_view.md index e9c8d1fbca..3f3d1f1d61 100644 --- a/awx/api/templates/api/retrieve_update_destroy_api_view.md +++ b/awx/api/templates/api/retrieve_update_destroy_api_view.md @@ -20,9 +20,13 @@ Make a PUT or PATCH request to this resource to update this {% with write_only=1 %} {% include "api/_result_fields_common.md" with serializer_fields=serializer_update_fields %} {% endwith %} +{% endifmeth %} +{% ifmeth PUT %} For a PUT request, include **all** fields in the request. +{% endifmeth %} +{% ifmeth PATCH %} For a PATCH request, include only the fields that are being modified. {% endifmeth %}