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.Responses
+ + === "200 OK" === "application/json" @@ -345,7 +349,9 @@ Gets a list of countries of the World with English dislay names and ISO countryResponses
+ + === "200 OK" === "application/json" @@ -405,7 +411,9 @@ Gets a list of countries supported by the system, with English dislay names andResponses
+ + === "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 checkResponses
+ + === "200 OK" === "application/json" @@ -751,7 +763,9 @@ API health checkResponses
+ + === "200 OK" === "application/json" @@ -845,7 +859,9 @@ Returns information about the API itself.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"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.Responses
+ + === "200 OK" === "application/json" @@ -1834,7 +1862,9 @@ Deletes a release by id.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 petsResponses
+ + === "200 OK" === "application/json" @@ -190,7 +192,9 @@ Create a petResponses
+ + === "201 Created" === "Other responses" @@ -274,7 +278,9 @@ Info for a specific petResponses
+ + === "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 petsResponses
+ + === "200 OK" === "application/json" @@ -141,7 +143,9 @@ List all petsResponses
+ + === "201 Created" === "Other responses" @@ -209,7 +213,9 @@ Info for a specific petResponses
+ + === "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 usersResponses
+ + === "200 OK" === "application/json" @@ -300,7 +304,9 @@ Get user by ID/EmailResponses
+ + === "200 OK"Refer to the common response description: UserInformation.
Responses
+ + === "200 OK"Refer to the common response description: UserInformation.