From c13b653c20a18e8802bf0bd7c45ecd0b1572aec8 Mon Sep 17 00:00:00 2001 From: elena Date: Mon, 19 Mar 2018 17:45:24 +0300 Subject: [PATCH] methods update --- Web-documentation/blocks/method-body.html.twig | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Web-documentation/blocks/method-body.html.twig b/Web-documentation/blocks/method-body.html.twig index f10d7cd..d9f1b74 100644 --- a/Web-documentation/blocks/method-body.html.twig +++ b/Web-documentation/blocks/method-body.html.twig @@ -7,6 +7,9 @@

Параметры

+{% if (method.requestHeaders is empty) and (method.requestQueryParams is empty) and (method.requestFields is empty)%} +

Параметры отсутствуют

+{% else %} {% if method.requestHeaders is not empty %}

Заголовки:

@@ -108,9 +111,12 @@ {% endif %} {% endif %} +{% endif %} -{% if method.errorsEnumeration is not empty %} -

Возможные ошибки

+

Возможные ошибки

+{% if (method.errorsEnumeration is empty) or (method.errorsEnumeration.allowedValues is empty) %} +

Описание ошибок отсутствует

+{% else %} {% for value in method.errorsEnumeration.values -%} {%- if value.value in method.errorsEnumeration.allowedValues %}

#Код {{ value.value }} — {{ value.description }}

@@ -118,7 +124,6 @@ {%- endfor %} {% endif %} -

Результат

{% if (method.responseFields is empty) and (method.responseHeaders is empty) %}

Результат отсутствует