Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions openapidocs/mk/v3/views_mkdocs/partial/request-responses.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<p class="responses-title"><strong>{{texts.responses}}</strong></p>

{% 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) -%}
Expand Down
80 changes: 64 additions & 16 deletions tests/res/example1-output.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ Initializes a file upload operation.
}
```

<p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

Expand Down Expand Up @@ -214,7 +216,9 @@ Gets the list of categories supported by the system.
<td>Access token issued by Azure Active Directory.</td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

=== "application/json"
Expand Down Expand Up @@ -345,7 +349,9 @@ Gets a list of countries of the World with English dislay names and ISO country
<td>Access token issued by Azure Active Directory.</td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

=== "application/json"
Expand Down Expand Up @@ -405,7 +411,9 @@ Gets a list of countries supported by the system, with English dislay names and
<td>Access token issued by Azure Active Directory.</td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

=== "application/json"
Expand Down Expand Up @@ -525,7 +533,9 @@ Gets a paginated set of downloads records.
<td></td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

=== "application/json"
Expand Down Expand Up @@ -678,7 +688,9 @@ API health check
<td>Access token issued by Azure Active Directory.</td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

=== "application/json"
Expand Down Expand Up @@ -751,7 +763,9 @@ API health check
<td>Access token issued by Azure Active Directory.</td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

=== "application/json"
Expand Down Expand Up @@ -845,7 +859,9 @@ Returns information about the API itself.
<td>Access token issued by Azure Active Directory.</td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

=== "application/json"
Expand Down Expand Up @@ -927,7 +943,9 @@ Returns details about a release by id.
<td></td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

=== "application/json"
Expand Down Expand Up @@ -1147,7 +1165,9 @@ Deletes a release by id.
<td></td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

<hr class="operation-separator" />
Expand Down Expand Up @@ -1250,6 +1270,8 @@ Deletes a release by id.
}
```

<p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

Expand Down Expand Up @@ -1519,7 +1541,9 @@ Deletes a release by id.
<td></td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

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

<p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

Expand Down Expand Up @@ -1771,7 +1797,9 @@ Deletes a release by id.
<td>Access token issued by Azure Active Directory.</td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

=== "application/json"
Expand Down Expand Up @@ -1834,7 +1862,9 @@ Deletes a release by id.
<td>Access token issued by Azure Active Directory.</td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

=== "application/json"
Expand Down Expand Up @@ -1905,7 +1935,9 @@ Deletes a release by id.
<td></td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

=== "application/json"
Expand Down Expand Up @@ -2044,7 +2076,9 @@ Deletes a release by id.
<td></td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

=== "application/json"
Expand Down Expand Up @@ -2120,7 +2154,9 @@ Deletes a release by id.
<td></td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

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

<p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

Expand Down Expand Up @@ -2471,6 +2509,8 @@ Deletes a release by id.
}
```

<p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

Expand Down Expand Up @@ -2731,6 +2771,8 @@ Deletes a release by id.
}
```

<p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

Expand Down Expand Up @@ -2980,6 +3022,8 @@ Deletes a release by id.
}
```

<p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

Expand Down Expand Up @@ -3201,7 +3245,9 @@ Deletes a release by id.
<td></td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

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

<p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

Expand Down
14 changes: 11 additions & 3 deletions tests/res/example2-output.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ List all pets
<td>How many items to return at one time (max 100)</td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

=== "application/json"
Expand Down Expand Up @@ -190,7 +192,9 @@ Create a pet
<td>Basic authentication</td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "201 Created"
=== "Other responses"

Expand Down Expand Up @@ -274,7 +278,9 @@ Info for a specific pet
<td>The id of the pet to retrieve</td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

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

<p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

Expand Down
14 changes: 11 additions & 3 deletions tests/res/example3-output.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ List all pets
<td>How many items to return at one time (max 100)</td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

=== "application/json"
Expand Down Expand Up @@ -141,7 +143,9 @@ List all pets
<hr class="operation-separator" />

### <span class="http-post">POST</span> /pets
Create a pet
Create a pet<p class="responses-title"><strong>Responses</strong></p>


=== "201 Created"
=== "Other responses"

Expand Down Expand Up @@ -209,7 +213,9 @@ Info for a specific pet
<td>The id of the pet to retrieve</td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

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

<p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

Expand Down
14 changes: 11 additions & 3 deletions tests/res/example4-split-output.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ Invite a user
}
```

<p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

Expand Down Expand Up @@ -201,7 +203,9 @@ Retrieve all users
<td>The maximum number of items to return.</td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"

=== "application/json"
Expand Down Expand Up @@ -300,7 +304,9 @@ Get user by ID/Email
<td>The ID or email of the user.</td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"
<div class="common-response"><p>Refer to the common response description: <a href="#userinformation" class="ref-link">UserInformation</a>.</p></div>
=== "401 Unauthorized"
Expand Down Expand Up @@ -354,7 +360,9 @@ Delete user by ID/Email
<td>ID of the user to transfer workflows and credentials to. Must not be equal to the to-be-deleted user.</td>
</tr>
</tbody>
</table>
</table><p class="responses-title"><strong>Responses</strong></p>


=== "200 OK"
<div class="common-response"><p>Refer to the common response description: <a href="#userinformation" class="ref-link">UserInformation</a>.</p></div>
=== "401 Unauthorized"
Expand Down