diff --git a/openapidocs/mk/v3/views_mkdocs/partial/request-responses.html b/openapidocs/mk/v3/views_mkdocs/partial/request-responses.html index c809d50..8994e0c 100644 --- a/openapidocs/mk/v3/views_mkdocs/partial/request-responses.html +++ b/openapidocs/mk/v3/views_mkdocs/partial/request-responses.html @@ -1,3 +1,5 @@ +

{{texts.responses}}

+ {% for code, definition in operation.responses.items() %} === "{% if code == "default" %}{{texts.other_responses}}{% else %}{{code}}{% with phrase = get_http_status_phrase(code) %}{% if phrase %} {{ phrase }}{% endif %}{% endwith %}{% endif %}" {%- if is_reference(definition) -%} diff --git a/tests/res/example1-output.md b/tests/res/example1-output.md index 4e73d7b..7e5ce78 100644 --- a/tests/res/example1-output.md +++ b/tests/res/example1-output.md @@ -121,6 +121,8 @@ Initializes a file upload operation. } ``` +

Responses

+ === "200 OK" @@ -214,7 +216,9 @@ Gets the list of categories supported by the system. Access token issued by Azure Active Directory. - +

Responses

+ + === "200 OK" === "application/json" @@ -345,7 +349,9 @@ Gets a list of countries of the World with English dislay names and ISO country Access token issued by Azure Active Directory. - +

Responses

+ + === "200 OK" === "application/json" @@ -405,7 +411,9 @@ Gets a list of countries supported by the system, with English dislay names and Access token issued by Azure Active Directory. - +

Responses

+ + === "200 OK" === "application/json" @@ -525,7 +533,9 @@ Gets a paginated set of downloads records. - +

Responses

+ + === "200 OK" === "application/json" @@ -678,7 +688,9 @@ API health check Access token issued by Azure Active Directory. - +

Responses

+ + === "200 OK" === "application/json" @@ -751,7 +763,9 @@ API health check Access token issued by Azure Active Directory. - +

Responses

+ + === "200 OK" === "application/json" @@ -845,7 +859,9 @@ Returns information about the API itself. Access token issued by Azure Active Directory. - +

Responses

+ + === "200 OK" === "application/json" @@ -927,7 +943,9 @@ Returns details about a release by id. - +

Responses

+ + === "200 OK" === "application/json" @@ -1147,7 +1165,9 @@ Deletes a release by id. - +

Responses

+ + === "200 OK"
@@ -1250,6 +1270,8 @@ Deletes a release by id. } ``` +

Responses

+ === "200 OK" @@ -1519,7 +1541,9 @@ Deletes a release by id. - +

Responses

+ + === "200 OK" === "application/json" @@ -1711,6 +1735,8 @@ Deletes a release by id. } ``` +

Responses

+ === "200 OK" @@ -1771,7 +1797,9 @@ Deletes a release by id. Access token issued by Azure Active Directory. - +

Responses

+ + === "200 OK" === "application/json" @@ -1834,7 +1862,9 @@ Deletes a release by id. Access token issued by Azure Active Directory. - +

Responses

+ + === "200 OK" === "application/json" @@ -1905,7 +1935,9 @@ Deletes a release by id. - +

Responses

+ + === "200 OK" === "application/json" @@ -2044,7 +2076,9 @@ Deletes a release by id. - +

Responses

+ + === "200 OK" === "application/json" @@ -2120,7 +2154,9 @@ Deletes a release by id. - +

Responses

+ + === "200 OK" === "application/json" @@ -2221,6 +2257,8 @@ Deletes a release by id. } ``` +

Responses

+ === "200 OK" @@ -2471,6 +2509,8 @@ Deletes a release by id. } ``` +

Responses

+ === "200 OK" @@ -2731,6 +2771,8 @@ Deletes a release by id. } ``` +

Responses

+ === "200 OK" @@ -2980,6 +3022,8 @@ Deletes a release by id. } ``` +

Responses

+ === "200 OK" @@ -3201,7 +3245,9 @@ Deletes a release by id. - +

Responses

+ + === "200 OK" === "application/json" @@ -3457,6 +3503,8 @@ Deletes a release by id. } ``` +

Responses

+ === "200 OK" diff --git a/tests/res/example2-output.md b/tests/res/example2-output.md index f522aa0..a3c748f 100644 --- a/tests/res/example2-output.md +++ b/tests/res/example2-output.md @@ -78,7 +78,9 @@ List all pets How many items to return at one time (max 100) - +

Responses

+ + === "200 OK" === "application/json" @@ -190,7 +192,9 @@ Create a pet Basic authentication - +

Responses

+ + === "201 Created" === "Other responses" @@ -274,7 +278,9 @@ Info for a specific pet The id of the pet to retrieve - +

Responses

+ + === "200 OK" === "application/json" @@ -420,6 +426,8 @@ Info for a specific pet } ``` +

Responses

+ === "200 OK" diff --git a/tests/res/example3-output.md b/tests/res/example3-output.md index 160b7e5..3693e03 100644 --- a/tests/res/example3-output.md +++ b/tests/res/example3-output.md @@ -62,7 +62,9 @@ List all pets How many items to return at one time (max 100) - +

Responses

+ + === "200 OK" === "application/json" @@ -141,7 +143,9 @@ List all pets
### POST /pets -Create a pet +Create a pet

Responses

+ + === "201 Created" === "Other responses" @@ -209,7 +213,9 @@ Info for a specific pet The id of the pet to retrieve - +

Responses

+ + === "200 OK" === "application/json" @@ -322,6 +328,8 @@ Info for a specific pet } ``` +

Responses

+ === "200 OK" diff --git a/tests/res/example4-split-output.md b/tests/res/example4-split-output.md index 2fb2950..47d1380 100644 --- a/tests/res/example4-split-output.md +++ b/tests/res/example4-split-output.md @@ -109,6 +109,8 @@ Invite a user } ``` +

Responses

+ === "200 OK" @@ -201,7 +203,9 @@ Retrieve all users The maximum number of items to return. - +

Responses

+ + === "200 OK" === "application/json" @@ -300,7 +304,9 @@ Get user by ID/Email The ID or email of the user. - +

Responses

+ + === "200 OK"

Refer to the common response description: UserInformation.

=== "401 Unauthorized" @@ -354,7 +360,9 @@ Delete user by ID/Email ID of the user to transfer workflows and credentials to. Must not be equal to the to-be-deleted user. - +

Responses

+ + === "200 OK"

Refer to the common response description: UserInformation.

=== "401 Unauthorized"